I have a sidebar that I am showing / hiding using a boolean like this:
[hidden]='toggleSidebar'
I have been trying to find the correct way to add a transition to this element, but so far have been only partially successful using this method :
[class.show]='!toggleSidebar'
. Applying css styles to this class only partially works though.
How do I add a slide-in or fade-in animation to an element containing a router-outlet such as this?
<aside [hidden]="toggleSidebar">
<router-outlet name="aside"></router-outlet>
</aside>