NgFor reported an error, but it was executed normally. Do you need to ignore it?

console appears

Cannot find a differ supporting object "[object Object]" of type "object". NgFor only supports binding to Iterables such as Arrays.

I probably know because of the array object structure,

but the screen works normally, so do I still need to pay attention to it?

because of the large amount of data, I am worried that data preprocessing will affect the performance

if you want to deal with it, does anyone have the experience of dealing with this error? it seems that you can"t be fooled by changing it into a class array?


ngFor needs to traverse an array of objects of classes, such as iterable objects Iterable

take a look at these answers
https://forum.ionicframework....

after reading it, it probably means to convert it to json format, that is, this.result = res.json (); call the json () method


can you post the general format of the ngFor content?
for example, * ngFor= "let user of users" , here users may be an array like this:

[{name:'a',age:1},{name:'b',age:2}]

or you can try converting the iterable object into an array through Array.from () .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7afb2e-15cf2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7afb2e-15cf2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?