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

Function isDisconnectedNode

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

Source from the content-addressed store, hash-verified

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

Callers 4

serializeLViewFunction · 0.90
calcPathForNodeFunction · 0.70

Calls 2

unwrapRNodeFunction · 0.90
isDisconnectedRNodeFunction · 0.85

Tested by

no test coverage detected