-
Notifications
You must be signed in to change notification settings - Fork 212
Emitted events in ui router
Błażej Krysiak edited this page May 10, 2016
·
4 revisions
Make sure you are familiar with:
- Event $stateChangePermissionStart
- Event $stateChangePermissionAccepted
- Event $stateChangePermissionDenied
Event broadcasted before start of authorizing.
$rootScope.$on('$stateChangePermissionStart', function(event, toState, toParams, options) { ... });
Event broadcasted when one of the permissions has been accepted and the state changes successfully.
$rootScope.$on('$stateChangePermissionAccepted', function(event, toState, toParams, options) { ... });
Event broadcasted when the access to the target state is not granted.
$rootScope.$on('$stateChangePermissionDenied', function(event, toState, toParams, options) { ... });
Next to read: 👉 Transition properties |
---|