Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c398d7d commit a66c968Copy full SHA for a66c968
docs/content/guide/di.ngdoc
@@ -67,11 +67,11 @@ Here is an example of using the injector service.
67
$window.alert(text);
68
}
69
};
70
- }).
71
-
+ });
+
72
// New injector is created from the module.
73
// (This is usually done automatically by angular bootstrap)
74
- var injector = angular.injector('myModule');
+ var injector = angular.injector(['myModule', 'ng']);
75
76
// Request any dependency from the injector
77
var greeter = injector.get('greeter');
0 commit comments