diff --git a/packages/core/src/render3/node_manipulation.ts b/packages/core/src/render3/node_manipulation.ts index 4b24c7a4f6d..923597f8977 100644 --- a/packages/core/src/render3/node_manipulation.ts +++ b/packages/core/src/render3/node_manipulation.ts @@ -407,6 +407,8 @@ function runLeaveAnimationsWithCallback( return callback(false); } + if (lView) allLeavingAnimations.add(lView); + addToAnimationQueue(injector, () => { // it's possible that in the time between when the leave animation was // and the time it was executed, the data structure changed. So we need