Skip to content

animateChild does not work when used in router transitions #30477

@Ploppy3

Description

@Ploppy3

🐞 bug report

Affected Package

The issue is caused by package @angular/animations

Is this a regression?

It never worked

Description

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

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.

🔥 Exception or Error





No error shown.

🌍 Your Environment

Angular Version:




@angular@7.2.15

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: animationslegacy animations package only. Otherwise use area: core.freq3: highstate: needs more investigationtype: bug/fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions