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