One data grid for JavaScript, React, Vue & Angular. Sorting, filtering, virtualization, pinning, and CSV export included. Early access $199 $349 → [Get it now]

How to Use ngDoCheck in Angular

The ngDoCheck lifecycle hook in Angular allows you to implement custom change detection logic for cases where Angular’s default change detection isn’t sufficient. As the creator of CoreUI, I use ngDoCheck for components that need to detect changes in complex objects, arrays, or when working with immutable data structures. This hook runs on every change detection cycle, so it requires careful implementation to avoid performance issues.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.