填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

DebugElement

      
      class 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: DebugEventListener[]
  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[]唯讀

方法

      
      query(predicate: Predicate<DebugElement>): DebugElement
    
引數
predicate Predicate
返回值

DebugElement

      
      queryAll(predicate: Predicate<DebugElement>): DebugElement[]
    
引數
predicate Predicate
返回值

DebugElement[]

      
      queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[]
    
引數
predicate Predicate
返回值

DebugNode[]

      
      triggerEventHandler(eventName: string, eventObj: any): void
    
引數
eventName string
eventObj any
返回值

void