diff options
| author | Misko Hevery | 2011-11-14 15:58:40 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:21 -0800 |
| commit | 8adae2fdf272f3fa428cc9fe43c860c02b2d85fd (patch) | |
| tree | bbfa04ebaa99fcb4f7dddd4a320b8dfe55e6c298 /src/Injector.js | |
| parent | 955551141de88f15760e3e6e8cb8503ee34b6f6e (diff) | |
| download | angular.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.js | 19 |
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, |
