I have a function in my component as
missionSelected(event){
this.category = event.option.value.children;
console.log(this.category);
}
This console log i am getting as:
(3) [{…}, {…}, {…}]
But as i am using this variable in my template as:
<mat-list-option *ngFor="let cat of category" [value]="cat">
<div>{{cat.name}}</div>
</mat-list-option>
This one giving me error as:
find a differ supporting object '[object Object]' of type 'object'.
NgFor only supports binding to Iterables such as Arrays.
I tried to reinitialize the same object in array variable but i am getting same error. Many ways i tried but not getting proper solution.

{path: "/home/rajesh/geospace/GIS", name: "GIS", children: Array(4), size: 18502537, type: "directory"} children: (4) [{…}, {…}, {…}, {…}] name: "GIS" path: "/home/rajesh/geospace/GIS" size: 18502537 type: "directory" __proto__: Object