Next.js starter your AI actually understands. Ship internal tools in days not weeks. Pre-order $199 $499 → [Get it now]

How to use OnPush change detection in Angular

OnPush change detection in Angular dramatically improves performance by skipping change detection when input references don’t change. As the creator of CoreUI with over 12 years of Angular experience since 2014, I’ve used OnPush to optimize performance in enterprise dashboards. OnPush strategy runs change detection only when input properties change reference, events fire, or Observables emit new values. This approach reduces unnecessary checks and makes applications faster, especially with large component trees.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.
How to Detect a Click Outside of a React Component
How to Detect a Click Outside of a React Component

How to loop through a 2D array in JavaScript
How to loop through a 2D array in JavaScript

How to Center a Button in CSS
How to Center a Button in CSS

How to validate an email address in JavaScript
How to validate an email address in JavaScript

Answers by CoreUI Core Team