MCPcopy
hub / github.com/angular/angular / name

Method name

packages/core/src/debug/debug_node.ts:152–163  ·  view source on GitHub ↗

* The element tag name, if it is an element.

()

Source from the content-addressed store, hash-verified

150 * The element tag name, if it is an element.
151 */
152 get name(): string {
153 const context = getLContext(this.nativeNode)!;
154 const lView = context ? context.lView : null;
155
156 if (lView !== null) {
157 const tData = lView[TVIEW].data;
158 const tNode = tData[context.nodeIndex] as TNode;
159 return tNode.value!;
160 } else {
161 return this.nativeNode.nodeName;
162 }
163 }
164
165 /**
166 * Gets a map of property names to property values for an element.

Callers

nothing calls this directly

Calls 1

getLContextFunction · 0.90

Tested by

no test coverage detected