CodeZettaInterview Hub

Angular · Change Detection · Junior · Best Practice

How does ChangeDetectionStrategy.OnPush improve performance?

Short Interview Answer

OnPush skips checking a subtree unless inputs change by reference, events fire, or the view is marked dirty.

Detailed Explanation

Combine with immutable inputs and async pipe/signals. Mutating objects in place without marking dirty won't update the view.

Did you know this answer?