title: How to show tabs based on user permissions in angular4?
body: <p>I have an application that shows some data to the user after login. Once the user login, a dashboard is rendered, that contains some pie-charts, line-charts and tabular-data. </p>
  
  <p>Dashboard contains 5 different tabs and currently all the tabs are available at dashboard. Now as per the latest requirement, I need to show only particular tabs that the user is permitted to see.</p>
  
  <p>All the tabs are individual angular components. Now I want to implement it in a way such that if the user don't have permission for 2 tabs, then on dashboard only 3 tabs should be displayed?</p>
  
  <p>I have all the information regarding user after login for user roles and permissions.</p>
  
  <p>I need help on what kind of approach should I follow? </p>