angular-symfony-acl
ACL component for Angular Js based on symfony2 user roles
For usage and examples go to app directory
Installation
Install with bower:
$ bower install angular-symfony-acl --save
Install with npm:
$ npm install angular-symfony-acl
Load the symfony-acl
module in your app.
angular;
Configure
angular ; { var myConfig = rolesHierarchy: 1: 'ROLE_USER' 2: 'ROLE_MODERATOR' 6: 'ROLE_ADMIN' 7: 'ROLE_SUPER_ADMIN' storage: 'localStorage' storageKey: 'user' ; AccessServiceProvider; }
Usage Example
Example usage using states:
{ 'use strict'; angular ; { $stateProvider } };
Catch access errors
angular ;