The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Animate Adding and Removing Angular Elements with ngIf

Animate Adding and Removing Angular Elements with ngIf

1:49
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.
Watch this lesson now
Avatar
egghead.io

A common use-case for an Angular 2 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.

Avatar
Eric

Just an FYI, the plunk doesn't seem to be working at the moment.

Avatar
izdb

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

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?