Skip to content
Advertisement

Angular *ngFor – Cant get my Arrays to loop

This keeps kicking upError: Cannot find a differ supporting object ‘[object Object]’ of type ‘object’. NgFor only supports binding to Iterables such as Arrays. But it works when I try print it to the console, any help be appreciated big time guys

Thank you (:

JavaScript
JavaScript

Advertisement

Answer

The error already mentions what’s the issue.

NgFor only supports binding to Iterables such as Arrays

You need to use an array in order that *ngFor works

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement