77 instantiateWasm ,
88} from "../../../shared/utils.js" ;
99
10- /** @private */
11- export const INJECTOR_LITERAL = "$injector" ;
1210/** @private */
1311export const COMPILE_LITERAL = "$compileProvider" ;
1412/** @private */
@@ -23,10 +21,6 @@ export const CONTROLLER_LITERAL = "$controllerProvider";
2321 * controllers, directives, filters, etc. They provide recipes for the injector
2422 * to do the actual instantiation. A module itself has no behaviour but only state.
2523 * A such, it acts as a data structure between the Angular instance and the injector service.
26- *
27- * Since this is an internal structure that is exposed only via the Angular instance,
28- * it contains no validation of the items it receives. It is up to the instantiator on
29- * modules to do the actual validation.
3024 */
3125export class NgModule {
3226 /**
@@ -67,8 +61,6 @@ export class NgModule {
6761
6862 this . services = [ ] ;
6963
70- this . wasmModules = [ ] ;
71-
7264 this . restDefinitions = [ ] ;
7365 }
7466
@@ -98,7 +90,7 @@ export class NgModule {
9890 * @returns {NgModule }
9991 */
10092 config ( configFn ) {
101- this . configBlocks . push ( [ INJECTOR_LITERAL , "invoke" , [ configFn ] ] ) ;
93+ this . configBlocks . push ( [ $t . $injector , "invoke" , [ configFn ] ] ) ;
10294 return this ;
10395 }
10496
@@ -225,8 +217,11 @@ export class NgModule {
225217 }
226218
227219 /**
228- * @param {string } name
229- * @param {ng.Injectable<any> } ctlFn
220+ * The $controller service is used by Angular to create new controllers.
221+ * This provider allows controller registration via the register method.
222+ *
223+ * @param {string } name Controller name
224+ * @param {ng.Injectable<ng.ControllerConstructor> } ctlFn Controller constructor fn (optionally decorated with DI annotations in the array notation)
230225 * @returns {NgModule }
231226 */
232227 controller ( name , ctlFn ) {
0 commit comments