animateChild does not work when used in router transitions
#30477
Comments
|
@Ploppy3 This is not a bug. The right way to do is bind the 'redToBack' to the _ page_: |
|
@GISerWYJ Sorry but this is not what I want, I want the individual elements/components of my page to render with their own animation. This is a minimal reproduction of the problem. I don't want the page to be animated. Nb: If you look closely your animation has a issue where the previous page disappear instantly. |
|
I'm having the exact same problem. I've tried just about every possible way I can think of to get animations to run on the pages that are entering/leaving and it just ignores them. Edit 1: It appears to ignore all child animations completely if the animation is on an element of the page being transitioned. However if I apply an animation to the page component via host binding, then use animateChild in THAT trigger (essentially going 2 levels deep with animateChild), it does something. Unfortunately, what it does is completely remove the leaving page instantly with no animations at all. But hey, at least something changed... |
|
Running into the same issue |
|
Same too :( |
|
Can we get a status update? Is someone working on this? Are there any suggested workarounds? Basic functionality being broken, without comment, for 6-7 major releases is not a great position to be in. For clarity, Angular 7 was released in October of 2018. A feature that's listed in the official docs at least four times has been broken for three (3!) years without comment or movement. What's going on? |
|
I'm unable to implement my team's visual+motion design using Angular animations because basic, documented, functionality is broken. It's been two years since this featured was accepted as broken, is there any kind of an update? |
|
@matsko ping |
|
@jelbourn Would you consider bumping this to |




Affected Package
The issue is caused by package @angular/animationsIs this a regression?
It never workedDescription
animateChilddoes not work when used in router transitions as explained in the official documentationanimateChildshould start child transitions but nothing happens.stackblitz
'Content page x' should be red and slowly switch back to black when switching page.
Remove the
[@routerAnimations]="prepareRoute(outlet)"and switch page to confirm that the animation is working but just not triggered.No error shown.
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: