Dynamic layout based on roles

Viewed 1374

I am building a website where the user can login .I am using materialise-css and Angularjs for front end and java-hibernate backend(using spring is not an option in my case)

The user can be admin, manager or employee. I want different views for different login roles as shown below.

For admin enter image description here

For manager enter image description here

and Employee enter image description here

My question is:

Is it a good approach to redirect to 3 different index.html or the page can be loaded dynamically based on the roles.If dynamically can be done, how? I have read about using ng-show and ng-if. But I am not understanding how to design the page with proper alignment and all with that. Please help me with proper answer for redirect me to any useful resource. Any help would be appreciated. Thank you.

1 Answers
Related