mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
angular.d.ts: added some overrides to ng.IModule
with angular it is possible to register controllers, directives etc. per convention if you create an object which has the functions defined. So that your module initialization must not know every controller etc. As an example look at https://github.com/DerAlbertCom/SignagePages/blob/develop/src/SignagePages/app/app.ts https://github.com/DerAlbertCom/SignagePages/blob/develop/src/SignagePages/app/LoginController.js https://github.com/DerAlbertCom/SignagePages/blob/develop/src/SignagePages/app/DailyMealsController.ts
This commit is contained in:
1 parent
4bf463db84
commit
50d34ac8db
1 file changed
+6
Vendored
+6
@@ -83,18 +83,24 @@ module ng {
|
||||
constant(name: string, value: any): IModule;
|
||||
controller(name: string, controllerConstructor: Function): IModule;
|
||||
controller(name: string, inlineAnnotadedConstructor: any[]): IModule;
|
||||
controller(object : {}): IModule;
|
||||
directive(name: string, directiveFactory: Function): IModule;
|
||||
directive(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
directive(object: {}): IModule;
|
||||
factory(name: string, serviceFactoryFunction: Function): IModule;
|
||||
factory(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
factory(obj: {}): IModule;
|
||||
filter(name: string, filterFactoryFunction: Function): IModule;
|
||||
filter(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
filter(object: {}): IModule;
|
||||
provider(name: string, serviceProviderConstructor: Function): IModule;
|
||||
provider(name: string, inlineAnnotadedConstructor: any[]): IModule;
|
||||
provider(object: {}): IModule;
|
||||
run(initializationFunction: Function): IModule;
|
||||
run(inlineAnnotadedFunction: any[]): IModule;
|
||||
service(name: string, serviceConstructor: Function): IModule;
|
||||
service(name: string, inlineAnnotadedConstructor: any[]): IModule;
|
||||
service(object: {}): IModule;
|
||||
value(name: string, value: any): IModule;
|
||||
|
||||
// Properties
|
||||
|
||||
Reference in new issue
Block a user