MCPcopy
hub / github.com/angular/angular / createElementRef

Function createElementRef

packages/core/src/linker/element_ref.ts:33–35  ·  view source on GitHub ↗
(tNode: TNode, lView: LView)

Source from the content-addressed store, hash-verified

31 * @returns The ElementRef instance to use
32 */
33export function createElementRef(tNode: TNode, lView: LView): ElementRef {
34 return new ElementRef(getNativeByTNode(tNode, lView) as RElement);
35}
36
37/**
38 * A wrapper around a native element inside of a View.

Callers 6

elementMethod · 0.90
createTemplateRefFunction · 0.90
constructorMethod · 0.90
createResultByTNodeTypeFunction · 0.90
createSpecialTokenFunction · 0.90
injectElementRefFunction · 0.85

Calls 1

getNativeByTNodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…