Angular · Class
ChangeDetectorRef
ChangeDetectorRef controls when Angular checks a component view. It supports OnPush updates, local checks, and attaching or detaching a view from the change-detection tree.
Last updated
Syntax
abstract class ChangeDetectorRef {
abstract markForCheck(): void;
abstract detach(): void;
abstract detectChanges(): void;
abstract reattach(): void;
}In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ChangeDetectionStrategyComponenteffectinput