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

Function getDeclarationView

packages/core/src/animation/utils.ts:140–143  ·  view source on GitHub ↗

* Resolves the view that declares the template a node belongs to. We use the * declaration view (rather than the rendered `LView` itself, which is a fresh * object on every re-render) so that the same logical insertion point compares * equal across re-renders, while distinct instances of a shared

(lView: LView | undefined)

Source from the content-addressed store, hash-verified

138 * unequal.
139 */
140function getDeclarationView(lView: LView | undefined): LView | null {
141 if (!lView) return null;
142 return lView[DECLARATION_VIEW] ?? lView;
143}
144
145// Tracks nodes that have scheduled leave animations but were re-inserted into the DOM
146// before the animation completed, thus rescuing them from being physically removed.

Callers 2

cancelLeavingNodesFunction · 0.85
trackLeavingNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…