Hi I have the following data structure,
this._days=[
{
"day": "",
"timing": {}
},
{
"day": "Monday",
"timing": [
{'9:00AM-10:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'10:00AM-11:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'11:00AM-12:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'12:00AM-13:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'13:00AM-14:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}}
]
},
{
"day": "Tuesday",
"timing": [
{'9:00AM-10:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'10:00AM-11:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'11:00AM-12:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'12:00AM-13:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}},
{'13:00AM-14:00AM': {'subject': 'Physics','teacher': 'Amanda','Location': 'Room 05'}}
]
},
...
And I wanna display the values like
In my html i tried,
<table width="100%" align="center" height=100%;>
<tr class="day">
<th *ngFor="let row of _days">{{row.day}}</th>
</tr>
<tr class="time" *ngFor="let x of _days.timing">
<th style="width:100px">{{_days.timing[x][key]}}</th>
<td>{{_days.timing[x].value}}</td>
</tr>
</table>
Is there anyway, I can achieve this in my html so that i can get the expected result as shown in the picture. Thanks in advance guys.

<tr class="time" *ngFor="let x of _days.timing">here you assigned_days.timingwhich is nothing