Editorial question138.8K views2,883 votes0 answers1,053 following
AI-generatedPrimeNG p-table Virtual Scroll and Angular OnPush Change Detection Interoperability
Goal Render a PrimeNG p-table with virtualScroll enabled inside an Angular component using ChangeDetectionStrategy.OnPush. Data updates arrive asynchronously and replace the value input with a new array reference. Constraint PrimeNG documentation does not explicitly confirm OnPush compatibility for virtual scroll. The table tracks rows through IterableDiffer