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
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.