angular/packages/core
Jessica Janiuk 6fed986b7a fix(core): Fixes animations in conjunction with content projection (#63776)
Content Projected nodes are not destroyed and recreated, like every other
situation. Enter and Leave animations were ephemeral and are
expected to run once, and then be cleared. This means that for content projection
cases, the animations would only ever work the first time they were shown / hid.

In order to resolve this, we move to an animation queue that re-runs the animation
functions stored in the LView. In most cases, this animation will run once on creation.
For content projection, the enter and leave animations will fire more than once. Animations
are stored on the LView, but indexed and scheduled by whichever RNode needs to be animated.
So we only run animations for an affected RNode, rather than potentially all in the LView.

This also moves the queue to afterRender, which is safer than right after template
execution in refreshView.

fixes: #63418
fixes: #64065
fixes: #63901

PR Close #63776
2025-10-02 16:56:01 +00:00
..
global build: rename defaults2.bzl to defaults.bzl (#63384) 2025-08-25 15:45:46 -07:00
primitives refactor(core): Add custom formatters for Signals (#64000) 2025-09-30 13:49:27 -04:00
rxjs-interop docs: update doc to clear up difference between toObservable/ outputToObservable (#63836) 2025-09-16 15:00:54 +00:00
schematics fix(migrations): handle shorthand property declarations in NgModule (#64160) 2025-10-01 10:41:17 -04:00
src fix(core): Fixes animations in conjunction with content projection (#63776) 2025-10-02 16:56:01 +00:00
test fix(core): Fixes animations in conjunction with content projection (#63776) 2025-10-02 16:56:01 +00:00
testing refactor(bazel): reduce build deps (#63348) 2025-08-28 09:16:10 -07:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63384) 2025-08-25 15:45:46 -07:00
index.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
package.json fix(core): mark zone.js as an optional peer dependency (#61616) 2025-05-22 12:14:06 -07:00
PACKAGE.md
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00
tsconfig-test.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00