Angular OnPush and Zoneless Change Detection
Guarantees the grid works inside OnPush and zoneless hosts. Internal scroll and pointer handlers run outside Angular change detection, and only output emissions trigger it. This keeps scroll smooth in large apps.
Planned. This page shows the specification from issue #178. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A 100k-row grid in an OnPush parent with an app-wide change-detection cycle counter.
Expected behavior
Scrolling adds zero app change-detection cycles. Each cell click adds exactly one.
Planned API surface
ChangeDetectionStrategy.OnPush compatibilityprovideZonelessChangeDetection supportrunOutsideAngular internal policyoutputs re-entering the zoneAcceptance criteria
- Scroll/resize/pointermove handlers trigger 0 app change-detection cycles (pending)
- Each output emission triggers at most one cycle (pending)
- Templates in OnPush parents update when signal inputs change (pending)
- The behaviour is identical with and without zone.js (pending)