I am trying to create a function that will be triggered at the end of an animation in Angular 2 (I am using the latest angular cli).
I have been on the Angular Anima
Now Angular2's supported (@animation.start) and (@animation.done) to tap into animation events.
For example, you can use (@routeAnimation.start)=onStart($event), (@routeAnimation.done)=onDone($event) in the first.component.html.
You can find out more at here.
Also you can see a simple example with the first.component.ts on Plunker.
Hope this help!