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() { 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>(); }
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>(); }