angular/packages/platform-browser/animations/test
arturovt 75aeae42b7 fix(animations): cleanup DOM elements when root view is removed with async animations (#53033)
Currently, when using `provideAnimationsAsync`, Angular uses `AnimationRenderer`
as the renderer. When the root view is removed, the `AnimationRenderer` defers the actual
work to the `TransitionAnimationEngine` to do this, and the `TransitionAnimationEngine`
doesn't actually remove the DOM node, but just calls `markElementAsRemoved()`.

The actual DOM node is not removed until `TransitionAnimationEngine` "flushes".

Unfortunately, though, that "flush" will never happen, since the root view is being
destroyed and there will be no more flushes.

This commit adds `flush()` call when the root view is being destroyed.

PR Close #53033
2024-01-25 16:32:57 +00:00
..
animation_renderer_spec.ts fix(animations): cleanup DOM elements when root view is removed with async animations (#53033) 2024-01-25 16:32:57 +00:00
BUILD.bazel fix(animations): cleanup DOM elements when root view is removed with async animations (#53033) 2024-01-25 16:32:57 +00:00
noop_animations_module_spec.ts refactor(animations): cleanup ahead of animation lazy loading (#51249) 2023-08-31 18:35:48 +00:00