DebugElement
interface
interface DebugElement extends DebugNode { name: string properties: {...} attributes: {...} classes: {...} styles: {...} childNodes: DebugNode[] nativeElement: any children: DebugElement[] query(predicate: Predicate<DebugElement>): DebugElement queryAll(predicate: Predicate<DebugElement>): DebugElement[] queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[] triggerEventHandler(eventName: string, eventObj: any): void // inherited from core/DebugNode listeners: EventListener[] parent: DebugElement | null nativeNode: any injector: Injector componentInstance: any context: any references: {...} providerTokens: any[] }
Properties
Property | Description |
---|---|
name: string | Read-only. |
properties: {
[key: string]: any;
} | Read-only. |
attributes: {
[key: string]: string | null;
} | Read-only. |
classes: {
[key: string]: boolean;
} | Read-only. |
styles: {
[key: string]: string | null;
} | Read-only. |
childNodes: DebugNode[] | Read-only. |
nativeElement: any | Read-only. |
children: DebugElement[] | Read-only. |
Methods
query() |
---|
queryAll() |
---|
queryAllNodes() |
---|
triggerEventHandler() | ||||||
---|---|---|---|---|---|---|
|
eventName | string | |
eventObj | any |
Returns
void
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/core/DebugElement