* The element tag name, if it is an element.
()
| 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. |
nothing calls this directly
no test coverage detected