Back to Developer Roadmap

changeDetection

src/data/roadmaps/angular/content/[email protected]

4.0646 B
Original Source

changeDetection

The change-detection strategy to use for this component. When a component is instantiated, Angular creates a change detector, which is responsible for propagating the component's bindings. The strategy is one of:

  • ChangeDetectionStrategy.OnPush sets the strategy to CheckOnce (on demand).
  • ChangeDetectionStrategy.Default sets the strategy to CheckAlways.

Visit the following resources to learn more: