Detach elements from change detection in Angular 7.
You can do this with ChangeDetectorRef using the .detach() and after the fact you may still call .detechChanges() to have a looksee. Note that the ngDoCheck lifecycle hook and many others may run even with the OnPush ChangeDetectionStrategy in play.
No comments:
Post a Comment