Angular · Middle · Question 1 of 75

What changes when a component uses ChangeDetectionStrategy.OnPush?

Explanation

With the default strategy every component is checked on each change detection run. OnPush skips whole subtrees that were not marked, which is the main runtime optimization in zone-based apps.

Further reading

Problem with a question

Angular · Middle · question 1

Test yourself

Take the Angular · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz