aboutsummaryrefslogtreecommitdiffstats
path: root/src/Injector.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Injector.js')
-rw-r--r--src/Injector.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Injector.js b/src/Injector.js
index 6fc466b9..c819d4f0 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -58,9 +58,9 @@ function createInjector(providerScope, providers, cache) {
creation = provider.$creation;
if (creation == 'eager') {
inject(name);
- }
- if (creation == 'eager-published') {
- setter(value, name, inject(name));
+ } else {
+ if (isDefined(creation))
+ throw "Unknown $creation value '" + creation + "' for service " + name;
}
});
} else {