On this page
DebugElement
class
class DebugElement extends DebugNode {
constructor(nativeNode: any, parent: any, _debugContext: DebugContext)
name: string
properties: {...}
attributes: {...}
classes: {...}
styles: {...}
childNodes: DebugNode[]
nativeElement: any
children: DebugElement[]
addChild(child: DebugNode)
removeChild(child: DebugNode)
insertChildrenAfter(child: DebugNode, newChildren: DebugNode[])
insertBefore(refChild: DebugNode, newChild: DebugNode): void
query(predicate: Predicate<DebugElement>): DebugElement
queryAll(predicate: Predicate<DebugElement>): DebugElement[]
queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[]
triggerEventHandler(eventName: string, eventObj: any)
// inherited from core/DebugNode
constructor(nativeNode: any, parent: DebugNode | null, _debugContext: DebugContext)
nativeNode: any
listeners: EventListener[]
parent: DebugElement | null
injector: Injector
componentInstance: any
context: any
references: {...}
providerTokens: any[]
}
Constructor
|
| nativeNode | Type: |
| parent | Type: |
| _debugContext | Type: |
Properties
| Property | Description |
|---|---|
name: string |
|
properties: { [key: string]: any; } |
|
attributes: { [key: string]: string | null; } |
|
classes: { [key: string]: boolean; } |
|
styles: { [key: string]: string | null; } |
|
childNodes: DebugNode[] |
|
nativeElement: any |
|
children: DebugElement[] |
Read-only. |
Methods
|
addChild()
|
||
|---|---|---|
|
| child | Type: |
|
removeChild()
|
||
|---|---|---|
|
| child | Type: |
|
insertChildrenAfter()
|
||||
|---|---|---|---|---|
|
| child | Type: |
| newChildren | Type: |
|
insertBefore()
|
||||
|---|---|---|---|---|
|
| refChild | Type: |
| newChild | Type: |
Returns
void
|
query()
|
||
|---|---|---|
|
| predicate | Type: |
Returns
|
queryAll()
|
||
|---|---|---|
|
| predicate | Type: |
Returns
|
queryAllNodes()
|
||
|---|---|---|
|
| predicate | Type: |
Returns
|
triggerEventHandler()
|
||||
|---|---|---|---|---|
|
| eventName | Type: |
| eventObj | Type: |
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/DebugElement