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

Function getDeclarationView

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

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