ui-router: event $viewContentLoading doesn't seem to work
It seems I’m unable to get the $viewContentLoading
fired.
The doc says it’s fired by the $rootScope
, while in the example listen to the $scope
$scope.$on('$viewContentLoading',
function(event, viewConfig){
// Access to all the view config properties.
// and one special property 'targetView'
// viewConfig.targetView
});
I’ve tried both, but I couldn’t catch any event
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 30 (8 by maintainers)
Links to this issue
Commits related to this issue
- fix(ui-view): change $viewContentLoading to pair with $viewContentLoaded The old $viewContentLoaded event wasn't needed for the one internal client (ui-view) because ui-view always ignores that event... — committed to metamatt/ui-router by deleted user 9 years ago
- fix(ui-view): change $viewContentLoading to pair with $viewContentLoaded The old $viewContentLoaded event wasn't needed for the one internal client (ui-view) because ui-view always ignores that event... — committed to legendar/ui-router by deleted user 9 years ago
- fix(ui-view): change $viewContentLoading to pair with $viewContentLoaded The old $viewContentLoaded event wasn't needed for the one internal client (ui-view) because ui-view always ignores that event... — committed to ExpFront/ui-router by deleted user 9 years ago
I can surely tell that the controller gets istantiated because in this code
The event
$viewContentLoaded
gets fired, while the$viewContentLoading
gets notI’m experiencing this problem with Angular 1.2.2 as well as 1.2.5