`animateChild` does not work when used in router transitions
See original GitHub issueπ bug report
Affected Package
The issue is caused by package @angular/animationsIs this a regression?
It never workedDescription
animateChild
does not work when used in router transitions as explained in the official documentation
animateChild
should start child transitions but nothing happens.
π¬ Minimal Reproduction
β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.
π₯ Exception or Error
No error shown.
π Your Environment
Angular Version:
@angular@7.2.15
Anything else relevant?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:30 (15 by maintainers)
Top Results From Across the Web
AnimateChild does not work for child :leave transition
In order to do this i've read that i have to use query('@*', animateChild()) . The problem is this still does not work....
Read more >Route transition animations - Angular
Calls the animateChild() method on the new view to run its child animations after the main animation completes. You now have a basic...
Read more >In-Depth guide into animations in Angular - inDepth.dev
In order to run both animations, the parent animation must query each element containing the child animations and run it using the animateChildΒ ......
Read more >Routing Animation in Angular - Medium
Well, you might think, Why Animations? . I'd say why not? Animations are awesome β€οΈβ€οΈ. Animation are used to make transitions more...
Read more >Angular Router Animations Guide - Fireship
Smooth animated router transitions will impress your users and set your ... The group method is used run multiple animations concurrently.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dario-piotrowicz Fantastic news that this may be a query issue. A mild inconvenience can be a simple hurdle to one dev and a brick wall to another, especially when the docs say it should work.
You have no idea how grateful I am that youβre working on this.
Mike awarded Dario:π (participant)
And Iβll have a freshly mintedπ₯1st place medal for you at this ticketβs closing ceremony!
Thanks @dario-piotrowicz - as discussed I will close this issue and we should continue with #44253