I am working on a project that requires multiple roles for which I'm using https://github.com/Narzerus/angular-permission. I need to work with different set of permissions on each of these roles. For example, role admin can have permissions ->PageView, PageEdit, PageCreate, while the role viewer has permissions->PageView only.
The roles associated with each user are stored in the database, I am planning to use the transition objects function to ensure what role is associated with what user.
I am new to angular and can't figure out a way to define a role such that I can, 1. Link multiple permissions with it, 2. Associate it with transition properties (dynamic function).