Role based redirection in Angular 6+

In my Angular8 app, there are 2 dashboard pages for User and Admin and I want to load the corresponding dashboard by using the role of a user to the PanelComponent. I think to use ngIf in the PanelComponent.html and load the corresponding dashboard according to role, but not sure if this is a good idea or not 🙁

On the other hand, there are some questions about that like How to achieve Role Based redirection after login in Angular-5?, but there is not a good example about that. So, what is the best way to implement this approach?

Source: New feed
Source Url Role based redirection in Angular 6+