I want to develop a component in my angular 4 application which mange the menu in the dashboard of my app.
My problem is that i have different type of users ('admin', 'expert', 'manager', ...) and for each user there is a list of items that should appear in the menu so each user has a different menu.
After some researches I found a the ngx-permissions library which manage Permission and roles
Can any one gives me the approach or the logic to follow to build the menu component, in other words, how to proceed to handle permissons in the menu component
what you can try to do is to create a ts file like:
AsnetUserDTO .ts file
ROLEGUARD.ts file:
then you can you use it in your routing file like (app.routing.ts):
hope it help you