MCPcopy Index your code
hub / github.com/angular/angular / addAnimationToLView

Function addAnimationToLView

packages/core/src/animation/utils.ts:352–360  ·  view source on GitHub ↗
(
  animations: Map<number, EnterNodeAnimations | LeaveNodeAnimations>,
  tNode: TNode,
  fn: RunEnterAnimationFn | RunLeaveAnimationFn,
)

Source from the content-addressed store, hash-verified

350 * @param fn The animation function to be called later
351 */
352export function addAnimationToLView(
353 animations: Map<number, EnterNodeAnimations | LeaveNodeAnimations>,
354 tNode: TNode,
355 fn: RunEnterAnimationFn | RunLeaveAnimationFn,
356) {
357 const nodeAnimations = animations.get(tNode.index) ?? {animateFns: []};
358 nodeAnimations.animateFns.push(fn);
359 animations.set(tNode.index, nodeAnimations);
360}
361
362export function cleanupAfterLeaveAnimations(
363 resolvers: VoidFunction[] | undefined,

Callers 4

ɵɵanimateEnterFunction · 0.90
ɵɵanimateEnterListenerFunction · 0.90
ɵɵanimateLeaveFunction · 0.90
ɵɵanimateLeaveListenerFunction · 0.90

Calls 3

getMethod · 0.65
setMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…