Unable to hide the navigation bar in login page in angular 2
问题 I am trying to implement a sample app in Angular using Angular Material and Angular Flex Layout . I have implemented a navigation bar which i want to hide in login page and visible in all pages in the application. I have created a service with the name showmenu.service.ts where I have declared a variable and assigned as boolean value. Also defined two functions show() and hide() I am not getting any error, but I am unable to hide the navigation bar in my login page . Please access my sample