Skip to content
masterclass Buddy

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.

Subscribe
  • ChangeDetectionStrategy
  • Component
  • effect
  • input

Source: ChangeDetectorRef • Angular. Checked 2026-11-03.