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

Function getDeclarationView

packages/core/src/animation/utils.ts:142–145  ·  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

140 * unequal.
141 */
142function getDeclarationView(lView: LView | undefined): LView | null {
143 if (!lView) return null;
144 return lView[DECLARATION_VIEW] ?? lView;
145}
146
147// Tracks nodes that have scheduled leave animations but were re-inserted into the DOM
148// 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