aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-07 21:55:41 -0800
committerMisko Hevery2011-11-14 20:31:14 -0800
commit4b35a59c6afd5093ed5ce7d68b75ccadd4c53696 (patch)
tree3c6ff14a663f40816f96464163b8373bd408507c /src/Angular.js
parent7cb03c5ab9376c5ce5d689f2bf1c18dc141237a1 (diff)
downloadangular.js-4b35a59c6afd5093ed5ce7d68b75ccadd4c53696.tar.bz2
refactor(scenario): fix scenario bootstrap & publish injector for inspection
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index e8bb3880..7b9bd1db 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -956,7 +956,9 @@ function angularInit(config, document){
});
createInjector(modules, angularModule)(['$rootScope', '$compile', '$injector', function(scope, compile, injector){
scope.$apply(function(){
- compile(isString(autobind) ? document.getElementById(autobind) : document)(scope);
+ var element = jqLite(isString(autobind) ? document.getElementById(autobind) : document);
+ element.data('$injector', injector);
+ compile(element)(scope);
});
}]);
}