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
You can handle that in router events and set this.menuState to 'out' whenever route changes.
this.menuState
'out'
A pretty decent sample code here