Angular · Senior · Question 5 of 75
Which component style is already compatible with zoneless change detection?
- ✓Correct answer: OnPush components whose state lives in signals or flows through
async/markForCheck - 2Components that mutate fields inside
setTimeoutand rely on the next tick - 3Components that call
NgZone.onStableto update the UI
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.