You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
});
});
The text was updated successfully, but these errors were encountered:
Small feature request: Could you add an
$stateChangeComplete
event, which is triggered after$stateChangeSuccess
and$stateChangeError
? Analogous to the promise API:then
,catch
andfinally
. Most APIs for async operations have a similar style.Quick hack for now (in case anyone needs this):
The text was updated successfully, but these errors were encountered: