changeDetection

Last updated

What is 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.

Free resources to learn changeDetection

More in stage 2: Components

changeDetection: common questions

Can I learn changeDetection in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain changeDetection in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this changeDetection tutorial for beginners?

It is lesson 17 of 158 in the free Angular roadmap, in stage 2, Components. If you are new to Angular, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me