Ejemplo n.º 1
0
 /// <summary>
 /// Loads a Javascript (or Typescript) module upon page startup.
 /// </summary>
 /// <param name="staticFunctionInvokation">An expression to call [a static method] on the loaded module.</param>
 public void JavaScript(JavascriptModule module, string staticFunctionInvokation = "run()")
 {
     JavascriptActions.JavaScript(module.GenerateLoad(staticFunctionInvokation));
 }
Ejemplo n.º 2
0
 public JsonResult JavaScript(JavascriptModule module, string staticFunctionInvokation = "run()")
 {
     return(JavaScript(module.GenerateLoad(staticFunctionInvokation)));
 }