aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2012-09-11 22:10:26 -0700
committerMisko Hevery2012-09-11 23:16:41 -0700
commit074a354fa975203f2043df28a92c4a8659ef81d0 (patch)
treefc5008b24a6455f12564773d61e8363fe6438cde /src
parente191582a02196e38d00236dd432748572bd30682 (diff)
downloadangular.js-074a354fa975203f2043df28a92c4a8659ef81d0.tar.bz2
fix($route): support inline annotation on .resolve
Diffstat (limited to 'src')
-rw-r--r--src/ng/route.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/route.js b/src/ng/route.js
index 1e9fc1db..e2a9c633 100644
--- a/src/ng/route.js
+++ b/src/ng/route.js
@@ -373,7 +373,7 @@ function $RouteProvider(){
forEach(next.resolve || {}, function(value, key) {
keys.push(key);
- values.push(isFunction(value) ? $injector.invoke(value) : $injector.get(value));
+ values.push(isString(value) ? $injector.get(value) : $injector.invoke(value));
});
if (isDefined(template = next.template)) {
} else if (isDefined(template = next.templateUrl)) {