diff options
Diffstat (limited to 'src/Scope.js')
| -rw-r--r-- | src/Scope.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Scope.js b/src/Scope.js index b2b8cdb4..a63cb8f7 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -525,7 +525,7 @@ function createScope(parent, providers, instanceCache) { * @param {string} serviceId String ID of the service to return. * @returns {*} Value, object or function returned by the service factory function if any. */ - instance.$service = createInjector(instance, providers, instanceCache); + (instance.$service = createInjector(instance, providers, instanceCache)).eager(); } $log = instance.$service('$log'); |
