2015-04-19 13:53:18 -07:00
2015-04-22 08:06:51 -07:00
p.location-badge.
2015-06-01 22:51:00 -07:00
exported from <a href='../change_detection'>angular2/change_detection</a>
2015-06-19 12:08:22 -07:00
defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/src/change_detection/change_detector_ref.ts#L2-L39">angular2/src/change_detection/change_detector_ref.ts (line 2)</a>
2015-04-19 13:53:18 -07:00
:markdown
Controls change detection.
2015-06-01 22:51:00 -07:00
<a href='ChangeDetectorRef-class.html'><code>ChangeDetectorRef</code></a> allows requesting checks for detectors that rely on observables. It
also allows detaching and
2015-04-19 13:53:18 -07:00
attaching change detector subtrees.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
constructor(_cd: ChangeDetector)
2015-04-19 13:53:18 -07:00
:markdown
2015-06-01 22:51:00 -07:00
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 requestCheck
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
requestCheck()
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
Request to check all ON_PUSH ancestors.
2015-06-01 22:51:00 -07:00
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 detach
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
detach()
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
Detaches the change detector from the change detector tree.
2015-04-19 13:53:18 -07:00
2015-06-19 12:08:22 -07:00
The detached change detector will not be checked until it is reattached.
2015-06-01 22:51:00 -07:00
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 reattach
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
reattach()
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
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.
2015-06-01 22:51:00 -07:00
2015-04-19 13:53:18 -07:00