예제 #1
0
      public static void Main()
      {
         Module app = new Module("myApp");   

         app.Directive<accordionDirective>();
         app.Directive<expanderDirective>();         
         app.Directive<helloDirective>();        

         app.Controller<TestDirectiveController>();
      }   
예제 #2
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>();        
 }   
예제 #3
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>();
 }
 public static void Main()
 {
    Module app = new Module("myApp", "ngSanitize");   
    
    app.Directive<contenteditableDirective>();
    app.Controller<TestDirectiveController>();
 }