public static void Main()
 {
    Module app = new Module("myApp");
    app.Factory<ItemsFactory>(); 
    app.Factory<LabelsFactory>(); 
    app.Filter<Filters>();        
    app.Controller<CartController>();
 }   
      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()")+"'");
         
      }   
 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>();        
 }