My app has a parent-child relationship. Where in the parent, I include the following selector of the child:
<app-chip-list [ocoChipItems]="getChipItems(row['status'])"></app-chip-list>
Note that the data to pass to the child must be derived via logic in the getChipItems() method in the parent.
Although the app seems to work as desired, it is throwing "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked" in the console.
I fixed this by adding the following to the parent component's declaration:
changeDetection: ChangeDetectionStrategy.OnPush
I don't fully understand what this does. So, I am not sure if it is the appropriate solution.
Thanks for your feedback.