diff options
| author | Igor Minar | 2012-03-08 15:42:35 -0800 |
|---|---|---|
| committer | Igor Minar | 2012-03-08 22:29:35 -0800 |
| commit | 5d09a1efd3ff98fc2fbba2f8f64230704f4a5e96 (patch) | |
| tree | a978ec1d082ee4e34a01090665f5ae59dc17377f /test/directive/ngViewSpec.js | |
| parent | f54db2ccda399f2677e4ca7588018cb31545a2b4 (diff) | |
| download | angular.js-5d09a1efd3ff98fc2fbba2f8f64230704f4a5e96.tar.bz2 | |
fix(ng-view, ng-include): onload and $contentLoaded
- change custom onload directive to special arguments recongnized by both
ng-view and ng-include
- rename $contentLoaded event to $viewContentLoaded and $includeContentLoaded
- add event docs
Diffstat (limited to 'test/directive/ngViewSpec.js')
| -rw-r--r-- | test/directive/ngViewSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/directive/ngViewSpec.js b/test/directive/ngViewSpec.js index d74812d3..afdded94 100644 --- a/test/directive/ngViewSpec.js +++ b/test/directive/ngViewSpec.js @@ -271,7 +271,7 @@ describe('ng:view', function() { inject(function($templateCache, $rootScope, $location) { $rootScope.$on('$beforeRouteChange', logger('$beforeRouteChange')); $rootScope.$on('$afterRouteChange', logger('$afterRouteChange')); - $rootScope.$on('$contentLoaded', logger('$contentLoaded')); + $rootScope.$on('$viewContentLoaded', logger('$viewContentLoaded')); $templateCache.put('tpl.html', [200, '{{value}}', {}]); $location.path('/foo'); @@ -279,7 +279,7 @@ describe('ng:view', function() { expect(element.text()).toBe('bound-value'); expect(log).toEqual(['$beforeRouteChange', '$afterRouteChange', 'init-ctrl', - '$contentLoaded']); + '$viewContentLoaded']); }); }); |
