MCPcopy
hub / github.com/angular/angular / injectElementRef

Function injectElementRef

packages/core/src/linker/element_ref.ts:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 * @returns The ElementRef instance to use
21 */
22export function injectElementRef(): ElementRef {
23 return createElementRef(getCurrentTNode()!, getLView());
24}
25
26/**
27 * Creates an ElementRef given a node.

Callers

nothing calls this directly

Calls 3

getCurrentTNodeFunction · 0.90
getLViewFunction · 0.90
createElementRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…