State Events
angular.module("myApp")
.run(function($rootScope){
$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams){
});
$rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams){
});
$rootScope.$on('$stateChangeError', function(event, toState, toParams, fromState, fromParams, error){
});
$rootScope.$on('$stateNotFound', function(event, unfoundState, fromState, fromParams){
});
});
Last updated
Was this helpful?