How to fix Cannot find a differ supporting object ‘[object Object]’ with Angular?

Sometimes, we want to fix Cannot find a differ supporting object ‘[object Object]’ with Angular.

In this article, we’ll look at how to fix Cannot find a differ supporting object ‘[object Object]’ with Angular.

How to fix Cannot find a differ supporting object ‘[object Object]’ with Angular?

To fix Cannot find a differ supporting object ‘[object Object]’ with Angular, we should check if our object is an array.

For instance, if we have

<option *ngFor="let option of setting.options" [value]="option">
  {{ option }}
</option>

then we should make sure that setting.options is an array.

Conclusion

To fix Cannot find a differ supporting object ‘[object Object]’ with Angular, we should check if our object is an array.