0

this is angular html code, I think that the problem is caused by input component(app-product) that called into my viewenter image description here

enter image description here

2 Answers2

1

This error is only thrown in development mode, you won't see it in production. It occurs when your input value changes before the Angular change detection lifecycle completes.

Although it doesn't have any side-effects as far as I know, you might want to change your child components (app-product in this particular example) ChangeDetectionStrategy to OnPush, which will force Angular to only check for changes when one of your inputs value change.

Berk Kurkcuoglu
  • 1,453
  • 1
  • 9
  • 11
0

If you are updating values of angular change listening variable inside ngAfterViewInit(), If there, move that code to ngOnInit() or use setTimeout inside ngAfterViewInit

HKR
  • 39
  • 3