I’m currently investing time into Ionic Animations and Gestures. With Angular Animations it is possible to define animations which “plays” when the element is added or removed from DOM via ngIf. With Ionic it is more tricky.
The “enter” Animation is easy possible by a Directive which plays the Animation on ngOnInit, but what about the “leave” Animation? ngOnDestroy is not possible, as it destorys the element before it can be played. Is it possible to “wait” before completly destroing it? Any suggestions ir ideas?