MCPcopy Create free account
hub / github.com/angular/angular / cleanupAfterLeaveAnimations

Function cleanupAfterLeaveAnimations

packages/core/src/animation/utils.ts:417–429  ·  view source on GitHub ↗
(
  resolvers: VoidFunction[] | undefined,
  cleanupFns: VoidFunction[],
)

Source from the content-addressed store, hash-verified

415}
416
417export function cleanupAfterLeaveAnimations(
418 resolvers: VoidFunction[] | undefined,
419 cleanupFns: VoidFunction[],
420): void {
421 if (resolvers) {
422 for (const fn of resolvers) {
423 fn();
424 }
425 }
426 for (const fn of cleanupFns) {
427 fn();
428 }
429}
430
431export function clearLViewNodeAnimationResolvers(lView: LView, tNode: TNode) {
432 const nodeAnimations = getLViewLeaveAnimations(lView).get(tNode.index);

Callers 3

handleOutAnimationEndFunction · 0.90
animateLeaveClassRunnerFunction · 0.90

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected