Angular - Hide sidebar menu after clicking a menu item

后端 未结 5 2031
天命终不由人
天命终不由人 2021-02-07 13:32

I created a sidebar menu, but I am not able to hide the menu after I click on a menu item. I followed the example from https://blog.thecodecampus.de/angular-2-animate-creating-s

5条回答
  •  逝去的感伤
    2021-02-07 13:42

    Isn't navigation component a child component of app component. Would be nice to have full code of navigation.component.ts. How is the menu state from navigation component send to its parent? Since not sure what is happening , I have put sample code in slackblitz

    https://stackblitz.com/edit/animations-in-angular4-2qwdt7?file=app%2Fnavigation.component.ts

提交回复
热议问题