How to have different sidemenu for two user



i have a sidemenu method that have initialized at app.component when i start the app, however i would need to have different sidemenu for user and admin after i login. How do i have different sidemenu since the method have already been initialized at app.component

Any ideas would be appreciated. Thanks


for each user you can save his role with his credentials. Then, after login, you can set as active different menu or some items of menu by id of menu. You can look at documentation