Beispiel #1
0
 public static void Main()
 {
    Module app = new Module("myApp");
    app.Config<PhoneConfig>();
    app.Controller<PhoneListController>();
    app.Controller<PhoneListControllerDetail>();
 }   
 public static void Main()
 {
    Module app = new Module("UiRouterExample", UiRouter.ModuleName);
             
    app.Config<UiRouterConfig>();
    app.Controller<MyController>();
    app.Controller<State1Controller>();        
 }   
 public static void Main()
 {
    Module app = new Module("myApp", "ngSanitize");   
    
    app.Directive<contenteditableDirective>();
    app.Controller<TestDirectiveController>();
 }   
 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", ngAnimate.ModuleName);         

         app.Animation<SpecialAnimation>(".special-animation");

         app.Controller<AnimationController>();
      }   
      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.Directive<accordionDirective>();
         app.Directive<expanderDirective>();         
         app.Directive<helloDirective>();        

         app.Controller<TestDirectiveController>();
      }   
 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>();
 }
Beispiel #9
0
 public static void Main()
 {
    Module app = new Module("myApp");
    app.Controller<StartUpController>();
 }   
 public static void Main()
 {        
    Module app = new Module("myApp");
    app.Animation<CoolAnimation>("cool-animation-show");
    app.Controller<AnimationController>();
 }   
 public static void Main()
 {
    Module app = new Module("myApp","ngResource");
    app.Controller<ResourceExampleController>();
 }