
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/change_detection/change_detector_ref.ts#L2-L40">angular2/src/core/change_detection/change_detector_ref.ts (line 2)</a>

:markdown
  Controls change detection.
  
  <a href='ChangeDetectorRef-interface.html'><code>ChangeDetectorRef</code></a> allows requesting checks for detectors that rely on observables. It
  also allows detaching and attaching change detector subtrees.
  
  
.l-main-section
  h2 Members
  .l-sub-section
    h3#markForCheck markForCheck

    
    pre.prettyprint
      code.
        markForCheck()
    
    :markdown
      Request to check all OnPush ancestors.
      
      





  .l-sub-section
    h3#detach detach

    
    pre.prettyprint
      code.
        detach()
    
    :markdown
      Detaches the change detector from the change detector tree.
      
      The detached change detector will not be checked until it is reattached.
      
      





  .l-sub-section
    h3#detectChanges detectChanges

    
    pre.prettyprint
      code.
        detectChanges()
    
    :markdown





  .l-sub-section
    h3#reattach reattach

    
    pre.prettyprint
      code.
        reattach()
    
    :markdown
      Reattach the change detector to the change detector tree.
      
      This also requests a check of this change detector. This reattached change detector will be
      checked during the next change detection run.
      
      




