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
fix(ui-sref): handle state transition promise rejection in ui-sref directive
In the current world, ui-sref does nothing when the promise returned by
$state.go is rejected. This PR gives ui-sref directive the ability to
emit $stateChangeCancel when the transition promise rejects.
The reason why I have chosen to implement this in the ui-sref directive
and not in the definition for $state.go or $state.transitionTo are
outlined in the issue below.
angular-ui#3027.
0 commit comments