DebugElement
- 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
-
- // 继承自 core/DebugNode
- listeners: EventListener[]
- parent: DebugElement | null
- nativeNode: any
- injector: Injector
- componentInstance: any
- context: any
- references: {...}
- providerTokens: any[]
- }
属性
属性 | 说明 |
---|---|
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[] | 只读 |