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

Function isDisconnectedNode

packages/core/src/hydration/node_lookup_utils.ts:55–61  ·  view source on GitHub ↗
(tNode: TNode, lView: LView)

Source from the content-addressed store, hash-verified

53 * Check whether a given node exists, but is disconnected from the DOM.
54 */
55export function isDisconnectedNode(tNode: TNode, lView: LView) {
56 return (
57 !(tNode.type & (TNodeType.Projection | TNodeType.LetDeclaration)) &&
58 !!lView[tNode.index] &&
59 isDisconnectedRNode(unwrapRNode(lView[tNode.index]))
60 );
61}
62
63/**
64 * Check whether the given node exists, but is disconnected from the DOM.

Callers 3

serializeLViewFunction · 0.90
calcPathForNodeFunction · 0.70

Calls 2

unwrapRNodeFunction · 0.90
isDisconnectedRNodeFunction · 0.85

Tested by

no test coverage detected