title: Role based redirection in Angular 6+
body: <p>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 <code>ngIf</code> in the PanelComponent.html and load the corresponding dashboard according to role, but not sure if this is a good idea or not :( </p>
  
  <p>On the other hand, there are some questions about that like <a href="https://stackoverflow.com/questions/51171468/how-to-achieve-role-based-redirection-after-login-in-angular-5">How to achieve Role Based redirection after login in Angular-5?</a>, but there is not a good example about that. So, what is the best way to implement this approach? </p>