Angular - Hide sidebar menu after clicking a menu item

后端 未结 5 2026
天命终不由人
天命终不由人 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:38

    You can handle that in router events and set this.menuState to 'out' whenever route changes.

    A pretty decent sample code here

提交回复
热议问题