Consider the dataSet which has table has following rows
Table
0: {date: "29-October-2019", flow: 0, max: 155.98, min: 155.98, avg: 155.98}
1: {date: "30-October-2019", flow (cft): 0, max: 27.03, min: 27.03, avg: 27.03}
Now I would like to iterate this each row and print all its columns in Angular like concept in c#
@foreach (DataRow row in Model.Tables[0].Rows)
{
<tr>
@foreach (DataColumn column in Model.Tables[0].Columns)
{
<td>
@row[column.ColumnName]
</td>
}
</tr>
}
Currently I am doing this
objectValues = Object.values;
<tr *ngFor="let row of dataSet.table.length">
<td *ngFor="let val of objectValues(row)">
{{row[val]}}
</td>
</tr>
but this throws
Please help.