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

Function getCurrentTNode

packages/core/src/render3/state.ts:379–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377}
378
379export function getCurrentTNode(): TNode | null {
380 let currentTNode = getCurrentTNodePlaceholderOk();
381 while (currentTNode !== null && currentTNode.type === TNodeType.Placeholder) {
382 currentTNode = currentTNode.parent;
383 }
384 return currentTNode;
385}
386
387export function getCurrentTNodePlaceholderOk(): TNode | null {
388 return instructionState.lFrame.currentTNode;

Callers 15

injectViewContainerRefFunction · 0.90
injectElementRefFunction · 0.90
injectTemplateRefFunction · 0.90
injectRenderer2Function · 0.90
injectChangeDetectorRefFunction · 0.90
ɵɵpipeFunction · 0.90
createNodeInjectorFunction · 0.90
outputBindingFunction · 0.90
resolveProviderFunction · 0.90
injectViewContextFunction · 0.90

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…