Angular - Hide sidebar menu after clicking a menu item

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

    The navigation on every router event would be slower than solutions that only run when needed. (It will run every time when you change route by any links or calls.)

    The solution can be just like here to listen to the click event and change state then.

提交回复
热议问题