public static void Main()
      {
         Module app = new Module("myApp");
         app.Factory<ItemsFactory>();
         app.Service<ExampleService>();
         app.Controller<StartUpController>();

         Window.Alert("'"+(string) Script.Eval("typeof new Date()")+"'");
         
      }   
Example #2
0
 public static void Main()
 {
    // The main TodoMVC app module
    Module todoapp = new Module("todomvc");
    
    // directives
    todoapp.Directive<todoBlurDirective>();         
    todoapp.Directive<todoFocusDirective>();        
             
    // services         
    todoapp.Service<todoStorage>();  
    
    // controllers
    todoapp.Controller<TodoCtrl>();
 }