11/** @private */
2- export const INJECTOR_LITERAL : "$injector" ;
3- /** @private */
42export const COMPILE_LITERAL : "$compileProvider" ;
53/** @private */
64export const ANIMATION_LITERAL : "$animateProvider" ;
@@ -13,10 +11,6 @@ export const CONTROLLER_LITERAL: "$controllerProvider";
1311 * controllers, directives, filters, etc. They provide recipes for the injector
1412 * to do the actual instantiation. A module itself has no behaviour but only state.
1513 * A such, it acts as a data structure between the Angular instance and the injector service.
16- *
17- * Since this is an internal structure that is exposed only via the Angular instance,
18- * it contains no validation of the items it receives. It is up to the instantiator on
19- * modules to do the actual validation.
2014 */
2115export class NgModule {
2216 /**
@@ -49,7 +43,6 @@ export class NgModule {
4943 /** @type {!Array.<ng.Injectable<any>> } */
5044 runBlocks : Array < ng . Injectable < any > > ;
5145 services : any [ ] ;
52- wasmModules : any [ ] ;
5346 restDefinitions : any [ ] ;
5447 /**
5548 * @param {string } name
@@ -123,11 +116,17 @@ export class NgModule {
123116 */
124117 filter ( name : string , filterFn : ng . Injectable < any > ) : NgModule ;
125118 /**
126- * @param {string } name
127- * @param {ng.Injectable<any> } ctlFn
119+ * The $controller service is used by Angular to create new controllers.
120+ * This provider allows controller registration via the register method.
121+ *
122+ * @param {string } name Controller name
123+ * @param {ng.Injectable<ng.ControllerConstructor> } ctlFn Controller constructor fn (optionally decorated with DI annotations in the array notation)
128124 * @returns {NgModule }
129125 */
130- controller ( name : string , ctlFn : ng . Injectable < any > ) : NgModule ;
126+ controller (
127+ name : string ,
128+ ctlFn : ng . Injectable < ng . ControllerConstructor > ,
129+ ) : NgModule ;
131130 /**
132131 * Register a named WebAssembly module that will be instantiated via $provide.
133132 *
0 commit comments