コード例 #1
0
ファイル: phone.cs プロジェクト: uddesh/Saltarelle.AngularJS
 public static void Main()
 {
    Module app = new Module("myApp");
    app.Config<PhoneConfig>();
    app.Controller<PhoneListController>();
    app.Controller<PhoneListControllerDetail>();
 }   
コード例 #2
0
 public static void Main()
 {
    Module app = new Module("myApp", "ngSanitize");   
    
    app.Directive<contenteditableDirective>();
    app.Controller<TestDirectiveController>();
 }   
コード例 #3
0
 public static void Main()
 {
    Module app = new Module("myApp");
    app.Factory<ItemsFactory>(); 
    app.Factory<LabelsFactory>(); 
    app.Filter<Filters>();        
    app.Controller<CartController>();
 }   
コード例 #4
0
 public static void Main()
 {
    Module app = new Module("UiRouterExample", UiRouter.ModuleName);
             
    app.Config<UiRouterConfig>();
    app.Controller<MyController>();
    app.Controller<State1Controller>();        
 }   
コード例 #5
0
      public static void Main()
      {        
         Module app = new Module("myApp", ngAnimate.ModuleName);         

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

         app.Controller<AnimationController>();
      }   
コード例 #6
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()")+"'");
         
      }   
コード例 #7
0
      public static void Main()
      {
         Module app = new Module("myApp");   

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

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