
p.location-badge.
  exported from <a href='../core'>angular2/core</a>
  defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.37/modules/angular2/src/core/debug/debug_element.ts#L9-L137">angular2/src/core/debug/debug_element.ts (line 9)</a>

:markdown
  A DebugElement contains information from the Angular compiler about an
  element and provides access to the corresponding ElementInjector and
  underlying dom Element, as well as a way to query for children.
  
  
.l-main-section
  h2 Members
  .l-sub-section
    h3#componentInstance componentInstance

    
    :markdown





  .l-sub-section
    h3#nativeElement nativeElement

    
    :markdown





  .l-sub-section
    h3#elementRef elementRef

    
    :markdown





  .l-sub-section
    h3#getDirectiveInstance getDirectiveInstance

    
    pre.prettyprint
      code.
        getDirectiveInstance(directiveIndex: number)
    
    :markdown





  .l-sub-section
    h3#children children

    
    :markdown
      Get child DebugElements from within the Light DOM.
      





  .l-sub-section
    h3#componentViewChildren componentViewChildren

    
    :markdown
      Get the root DebugElement children of a component. Returns an empty
      list if the current DebugElement is not a component root.
      





  .l-sub-section
    h3#triggerEventHandler triggerEventHandler

    
    pre.prettyprint
      code.
        triggerEventHandler(eventName: string, eventObj: Event)
    
    :markdown





  .l-sub-section
    h3#hasDirective hasDirective

    
    pre.prettyprint
      code.
        hasDirective(type: Type)
    
    :markdown





  .l-sub-section
    h3#inject inject

    
    pre.prettyprint
      code.
        inject(type: Type)
    
    :markdown





  .l-sub-section
    h3#getLocal getLocal

    
    pre.prettyprint
      code.
        getLocal(name: string)
    
    :markdown





  .l-sub-section
    h3#query query

    
    pre.prettyprint
      code.
        query(predicate: Predicate&lt;DebugElement&gt;, scope?: Function)
    
    :markdown
      Return the first descendant TestElement matching the given predicate
      and scope.
      





  .l-sub-section
    h3#queryAll queryAll

    
    pre.prettyprint
      code.
        queryAll(predicate: Predicate&lt;DebugElement&gt;, scope?: Function)
    
    :markdown
      Return descendant TestElememts matching the given predicate
      and scope.
      




