aboutsummaryrefslogtreecommitdiffstats
path: root/src/Injector.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-14 15:58:40 -0800
committerMisko Hevery2011-11-14 20:31:21 -0800
commit8adae2fdf272f3fa428cc9fe43c860c02b2d85fd (patch)
treebbfa04ebaa99fcb4f7dddd4a320b8dfe55e6c298 /src/Injector.js
parent955551141de88f15760e3e6e8cb8503ee34b6f6e (diff)
downloadangular.js-8adae2fdf272f3fa428cc9fe43c860c02b2d85fd.tar.bz2
refactor(injector): removed loadModule/ng:module
- added module property to doc:example
Diffstat (limited to 'src/Injector.js')
-rw-r--r--src/Injector.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/Injector.js b/src/Injector.js
index 1db79eb8..8df47306 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -140,21 +140,6 @@ function inferInjectionArgs(fn) {
* @return new instance of `Type`.
*/
-/**
- * @ngdoc method
- * @name angular.module.AUTO.$injector#loadModule
- * @methodOf angular.module.AUTO.$injector
- * @description
- * Load additional modules into the current injector configuration
- *
- * @param {Array} modules An array of modules, where module is a:
- *
- * - `string`: look up the module function from {@link angular.module} and then treat as `function`.
- * - `function`: execute the module configuration function using
- * {@link angular.module.AUTO.$injector#invoke $injector.invoke()}
- */
-
-
/**
* @ngdoc object
@@ -255,15 +240,13 @@ function inferInjectionArgs(fn) {
function createInjector(modulesToLoad, moduleRegistry) {
var cache = {},
providerSuffix = 'Provider',
- providerSuffixLength = providerSuffix.length,
path = [],
$injector;
value('$injector', $injector = {
get: getService,
invoke: invoke,
- instantiate: instantiate,
- loadModule: loadModule
+ instantiate: instantiate
});
value('$provide', {
service: service,