I just want to configure my dashboard according to the user role .
for example
- if the user login have the role = admin , than the dashboard component should load the template URL which is for the admin.
- similarly if the user login have the role = employee , than the dashboard component should load the template URL which is for the employee.
in short i am saying that i have one component namely dashboard , and i want to load three different template URLs at three different time on three different roles
Is it possible in angular 2 ? and how .