Categories
Angular Answers

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

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *