mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Animation runner functions (runEnterAnimation, runLeaveAnimations, runLeaveAnimationFunction) execute asynchronously from the animation queue via afterNextRender. By that time the lView injector may have been destroyed, causing lView[INJECTOR].get(NgZone) to throw NG0205. Move the NgZone and MAX_ANIMATION_TIMEOUT lookups into the setup instructions (ɵɵanimateEnter, ɵɵanimateLeave, ɵɵanimateLeaveListener) which run synchronously during template processing when the injector is guaranteed to be valid, and pass them through the closures. |
||
|---|---|---|
| .. | ||
| global | ||
| primitives | ||
| resources | ||
| rxjs-interop | ||
| schematics | ||
| src | ||
| test | ||
| testing | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||
| tsconfig-build.json | ||
| tsconfig-test.json | ||