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

Function clearLeavingNodes

packages/core/src/animation/utils.ts:152–161  ·  view source on GitHub ↗
(tNode: TNode, el: HTMLElement)

Source from the content-addressed store, hash-verified

150 * This actually removes the leaving HTML Element in the TNode
151 */
152export function clearLeavingNodes(tNode: TNode, el: HTMLElement): void {
153 const nodes = leavingNodes.get(tNode);
154 if (nodes && nodes.length > 0) {
155 const ix = nodes.findIndex((node) => node.el === el);
156 if (ix > -1) nodes.splice(ix, 1);
157 }
158 if (nodes?.length === 0) {
159 leavingNodes.delete(tNode);
160 }
161}
162
163/**
164 * In the case that we have an existing node that's animating away in a

Callers 3

handleOutAnimationEndFunction · 0.90
animateLeaveClassRunnerFunction · 0.90

Calls 2

getMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…