Reload appcomponent.ts while logging out

I had a scenario where based on type of user I need to get the side menu.I could achieve this only when we launches the app for first time.After logging out even if type of user changes sidemenu remains the same. Can any one suggest a solution for this??

Expose a user authentication state Observable somewhere, subscribe to it in your app component’s constructor. This gives you a hook that will allow you to do things every time somebody logs in or out.

Using Ionic’s events solved my problem.