Thursday, January 11, 2018

With ChangeDetectionStrategy in Angular 4 you may also have a ChangeDetectorRef, and, I believe, call detectChanges() on it to force the sleeping watchers to wake up an open an eye.

You would set one up as seen here and per this the methods hanging off of it are:

  1. .markForCheck();
  2. .detach();
  3. .detectChanges();
  4. .checkNoChanges();
  5. .reattach();

No comments:

Post a Comment