On this page
DebugElement
class
experimental
npm Package | @angular/core |
---|---|
Module | import { DebugElement } from '@angular/core'; |
Source | core/src/debug/debug_node.ts |
Overview
class DebugElement extends DebugNode {
constructor(nativeNode: any, parent: any, _debugContext: DebugContext)
name: string
properties: {...}
attributes: {...}
classes: {...}
styles: {...}
childNodes: DebugNode[]
nativeElement: any
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[]
get children: DebugElement[]
triggerEventHandler(eventName: string, eventObj: any)
// inherited from core/DebugNode
nativeNode: any
listeners: EventListener[]
parent: DebugElement | null
get injector: Injector
get componentInstance: any
get context: any
get references: {...}
get providerTokens: any[]
}
Constructor
constructor(nativeNode: any, parent: any, _debugContext: DebugContext)
Members
name: string
properties: { [key: string]: any; }
attributes: { [key: string]: string | null; }
classes: { [key: string]: boolean; }
styles: { [key: string]: string | null; }
childNodes: DebugNode[]
nativeElement: any
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[]
get children: DebugElement[]
triggerEventHandler(eventName: string, eventObj: any)
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/core/DebugElement