paymentOptions =
[
{
"key":"COD",
"value":"COD"
},
{
"key":"ONLINE",
"value":"ONLINE"
}
];
I have an array of objects in my component ts file when I loop it in html file using ngFor
<div *ngFor="let obj of paymentOptions">
<input type="checkbox" value = "{{obj.value}}">{{obj.key}}
</div>
My data print but I get an error in console as Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.