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

Function cleanupAfterLeaveAnimations

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

Source from the content-addressed store, hash-verified

390}
391
392export function cleanupAfterLeaveAnimations(
393 resolvers: VoidFunction[] | undefined,
394 cleanupFns: VoidFunction[],
395): void {
396 if (resolvers) {
397 for (const fn of resolvers) {
398 fn();
399 }
400 }
401 for (const fn of cleanupFns) {
402 fn();
403 }
404}
405
406export function clearLViewNodeAnimationResolvers(lView: LView, tNode: TNode) {
407 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