-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Small feature request: Could you add an $stateChangeComplete
event, which is triggered after $stateChangeSuccess
and $stateChangeError
? Analogous to the promise API: then
, catch
and finally
. Most APIs for async operations have a similar style.
Quick hack for now (in case anyone needs this):
angular.forEach([ '$stateChangeSuccess', '$stateChangeError'], function(event) {
$rootScope.$on(event, function(event, toState, toParams, fromState, fromParams, error) {
// do stuff here...
// error param is undefined for $stateChangeSuccess
});
});
Metadata
Metadata
Assignees
Labels
No labels