コード例 #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>();
 }
コード例 #4
0
 public static void Main()
 {
    Module app = new Module("myApp", "ngSanitize");   
    
    app.Directive<contenteditableDirective>();
    app.Controller<TestDirectiveController>();
 }