enter image description hereHi I want to iterate over following array using angular2
let list = [{"-1" : [{a : 1, b: 2, c: 2}, {a:3, b: 4, c: 2}]},
{"0" : [{a : 12, b: 32, c: 22}, {a:31, b: 24, c: 32}}]
And show the out put in a table formate as shown in the image
please help me in solving the problem.
Following code i have tried
<table >
<thead>
<tr>
<th > a </th>
<th > b </th>
<th > c </th>
</tr>
</thead>
<tbody >
<tr *ngFor="let element of list">
<td> {{element['-1'].a}}</td>
<td> {{element['-1'].b}}</td>
<td> {{element['-1'].c}}</td>
</tr>
</tbody>
</table>
But i am not able to add the row "-1", "0"