Angular · Senior · Question 5 of 75

Which component style is already compatible with zoneless change detection?

Explanation

If a component works correctly with OnPush, it is very likely zoneless-ready. APIs like NgZone.onStable/onMicrotaskEmpty don't emit without Zone.js and should be replaced with afterNextRender or signals.

Further reading

Problem with a question

Angular · Senior · question 5

Test yourself

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

Take this quiz