Category "angular-changedetection"

Infinite loop when calling detectChanges() inside ngAfterViewChecked?

I recently reviewed some code where detectChanges() is called from ngAfterViewChecked. How does that not cause an infinite loop? Shouldn't it trigger another ch

Why kendo dialog is not generating on click event while we use change detection strategy in nx based angular project?

I am using kendo dialog in nx-based angular application with "ChangeDetectionStrategy" to add employee details. In the dashboard component I have first kendo di

Angular 9 display number of change detection cycles on the UI? stackblitz inside

I'm trying to build a small dev component that displays only in non-production builds. One of the things that I see useful to keep track of is the number of c

Angular Reactive Forms AddControl Causes ExpressionChangedAfterItHasBeenCheckedError When Using PatchValue

I wanted to be able to build up a reactive form using components, but not set it all up in a single parent component. So I created the intial FormGroup and pas