A common use-case for an Angular animation is to animate an element into the DOM. This is achieved with a combination of ngIf and the “void” state so that you have complete control over how the element appears and how it leaves.
Just an FYI, the plunk doesn't seem to be working at the moment.
Is there a way to use this method when the ngIf contains a router-outlet? Seems to break routing making the whole animation system unusable
How can I do something similar when the ngIf is placed on a child component. I have an issue where the animation works on enter, but not on leave.