aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVojta Jina2012-03-30 13:54:43 -0700
committerVojta Jina2012-04-03 10:10:44 -0700
commit199ac269869a57bb63d60c9b3f510d546bf0c9b2 (patch)
tree4274d80c13734735923c725cb8c38e04feae253a /src
parent5f70d615a5f7e102424c6adc15d7a6f697870b6e (diff)
downloadangular.js-199ac269869a57bb63d60c9b3f510d546bf0c9b2.tar.bz2
fix(ngInclude): fire $includeContentLoaded on proper (child) scope
Diffstat (limited to 'src')
-rw-r--r--src/ng/directive/ngInclude.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js
index f1c836f0..f6159813 100644
--- a/src/ng/directive/ngInclude.js
+++ b/src/ng/directive/ngInclude.js
@@ -110,7 +110,7 @@ var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile'
$anchorScroll();
}
- scope.$emit('$includeContentLoaded');
+ childScope.$emit('$includeContentLoaded');
scope.$eval(onloadExp);
}).error(function() {
if (thisChangeId === changeCounter) clearContent();