diff options
| author | Vojta Jina | 2012-03-30 13:54:43 -0700 | 
|---|---|---|
| committer | Vojta Jina | 2012-04-03 10:10:44 -0700 | 
| commit | 199ac269869a57bb63d60c9b3f510d546bf0c9b2 (patch) | |
| tree | 4274d80c13734735923c725cb8c38e04feae253a /src/ng/directive/ngInclude.js | |
| parent | 5f70d615a5f7e102424c6adc15d7a6f697870b6e (diff) | |
| download | angular.js-199ac269869a57bb63d60c9b3f510d546bf0c9b2.tar.bz2 | |
fix(ngInclude): fire $includeContentLoaded on proper (child) scope
Diffstat (limited to 'src/ng/directive/ngInclude.js')
| -rw-r--r-- | src/ng/directive/ngInclude.js | 2 | 
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(); | 
