I am creating an application with angular 2/4, Where my super-admin will create different tenants/roles and give access to different pages/features(permissions) so both things will be dynamic.
I can able to retrieve the pages and display them on menu. Implemented the menu by using this article : https://webcake.co/automating-your-main-nav-in-a-modular-angular-2-app/
Now I also want to guard the route so a user will not access the feature with manually typing the URL.
Need some more clarification of how to make dynamic routes or navigation which is getting from database.
Is there any way to do role-based authorization with dynamic role name and dynamic feature permissions?
Can any one help on this.