I've a nested array in this form
tests: [
[{name:"Bob",score:40,subject:"Math"}, {name:"John",score:55,subject:"Math"}],
[{name:"Alice",score:70,subject:"English"},{name:"John",score:68,subject:"English"}]
],
// ...
and I want to loop through and print while grouping the same subjects together as in:
<div *ngFor = "let test of tests;let i = index">
<ul *ngFor = "let student of test[i] ;let n = index">
<li>{{student.name+' '+student.score}}</li>
</ul>
</div>
but it end up with the error:
ERROR Error: Cannot find a differ supporting object
[object Object]of type 'object'. NgFor only supports binding to Iterables such as Arrays.
the starts from the second loop. what am I missing here, please?