MCPcopy
hub / github.com/angular/angular / injectTemplateRef

Function injectTemplateRef

packages/core/src/linker/template_ref.ts:119–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 * @returns The TemplateRef instance to use
118 */
119export function injectTemplateRef<T>(): TemplateRef<T> | null {
120 return createTemplateRef<T>(getCurrentTNode()!, getLView());
121}
122
123/**
124 * Creates a TemplateRef and stores it on the injector.

Callers

nothing calls this directly

Calls 3

getCurrentTNodeFunction · 0.90
getLViewFunction · 0.90
createTemplateRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…