public static void Main()
 {
    Module app = new Module("myApp");
    app.Factory<ItemsFactory>(); 
    app.Factory<LabelsFactory>(); 
    app.Filter<Filters>();        
    app.Controller<CartController>();
 }   
예제 #2
0
      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()")+"'");
         
      }   
예제 #3
0
 public static void Main()
 {
    Module app = new Module("myApp");
           
    //app.Debug("service","pippo");                  
    //app.RegisterController( typeof(TestController) );         
    //app.RegisterFactory( typeof(ItemsFactory) );
    //app.RegisterDirectiveAsFactory("testdirective",typeof(testdirective));
    app.Factory<ItemsFactory>();
            
    app.Directive<AccordionDefinition>();
    app.Directive<ExpanderDefinition>();         
    app.Directive<HelloDirective>();        
 }