Angular Navigation issue - unable to show hide menu


I’m working on a Angular project and I’m unable to show / hide the navigation based on login. if the user is logged in of course show the navigation bar and if not hide the navigation bar. I’m somewhat new to angular so any assistant you can provide would be greatly appreciated.

I created a simple example demonstrating the problem on stackblitz:

Thank you,

Hello, @robin01
You can use ngIf and check if user is logged in,
Sorry my English language isn’t good enough but you can understand from attached image.
Ahmed SallamScreenshot from 2020-02-16 11-34-58

Hi Ahmed ,

Its already implemented its just not loading that page.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.