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

Function getNativeByTNode

packages/core/src/render3/util/view_utils.ts:101–106  ·  view source on GitHub ↗
(tNode: TNode, lView: LView)

Source from the content-addressed store, hash-verified

99 * @param lView
100 */
101export function getNativeByTNode(tNode: TNode, lView: LView): RNode {
102 ngDevMode && assertTNodeForLView(tNode, lView);
103 ngDevMode && assertIndexInRange(lView, tNode.index);
104 const node: RNode = unwrapRNode(lView[tNode.index]);
105 return node;
106}
107
108/**
109 * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.

Callers 15

insertAnchorNodeFunction · 0.90
createElementRefFunction · 0.90
ɵɵvalidateAttributeFunction · 0.90
getClosestRElementFunction · 0.90
getFirstNativeNodeFunction · 0.90
createComponentLViewFunction · 0.90
listenToDomEventFunction · 0.90
validateElementIsKnownFunction · 0.90
setDomPropertyFunction · 0.90
setNgReflectPropertyFunction · 0.90
elementAttributeInternalFunction · 0.90

Calls 3

assertTNodeForLViewFunction · 0.90
assertIndexInRangeFunction · 0.90
unwrapRNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…