feat(change_detection): allow triggering CD form ChangeDetectorRef

Closes #4144
This commit is contained in:
Misko Hevery
2015-09-11 14:53:49 -07:00
parent 83715f06d1
commit 63e785902f
2 changed files with 30 additions and 0 deletions

View File

@ -25,6 +25,8 @@ export class ChangeDetectorRef {
*/
detach(): void { this._cd.mode = ChangeDetectionStrategy.Detached; }
detectChanges(): void { this._cd.detectChanges(); }
/**
* Reattach the change detector to the change detector tree.
*