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

Function getComponentAtNodeIndex

packages/core/src/render3/context_discovery.ts:332–335  ·  view source on GitHub ↗
(nodeIndex: number, lView: LView)

Source from the content-addressed store, hash-verified

330}
331
332export function getComponentAtNodeIndex(nodeIndex: number, lView: LView): {} | null {
333 const tNode = lView[TVIEW].data[nodeIndex] as TNode;
334 return isComponentHost(tNode) ? lView[tNode.directiveStart + tNode.componentOffset] : null;
335}
336
337/**
338 * Returns a map of local references (local reference name => element or directive instance) that

Callers 1

getComponentFunction · 0.90

Calls 1

isComponentHostFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…