Skip to content

BUG: IVY ViewContainerRef does not remove item with animation (Route) #33030

@kukjevov

Description

@kukjevov

🐞 bug report

Affected Package

@angular/core
@angular/common
@angular/animations
@angular/router

Probably one of these

Is this a regression?

I am not sure, but i think it was working without IVY, so it is possible that it is regression.

Description

When you have route with animation (little complex animation) on component which is routet, after changing route, new component appear next to old component which is not removed and this will stack.

🔬 Minimal Reproduction

clone https://github.com/kukjevov/ng-universal-demo.git
cd ng-universal-demo
git checkout ivy-error
npm install
npm start
open browser at http://localhost:8888
click on garden link
click on Garden link
click on Home link
click on Garden link
click on Home link
click on Garden link
click on Home link

then you will see that home-view will be there multiple times (it is not removed after changing route)

🔥 Exception or Error

No exception just not removed component from view.

🌍 Your Environment

Angular Version:

Versions:
angular: 9.0.0-next.9
nodejs: 10.16.0
npm: 6.9.0
windows: 10.0.17763 Build 17763

Metadata

Metadata

Assignees

Labels

area: routerfreq2: mediumneeds reproductionThis issue needs a reproduction in order for the team to investigate furtherregressionIndicates than the issue relates to something that worked in a previous versiontype: bug/fix

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions