Hello, I have problem to for looping json
ihave json like this
{
"timetable": {
"1": [
{
"id": 49,
"subject": "Matematika",
"teacher": "Andi Hidayat, S.Pd"
},
{
"id": 47,
"subject": "FISIKA",
"teacher": "Andi Hidayat, S.Pd"
}
],
"2": [
{
"id": 26,
"subject": "FISIKA",
"teacher": "Andi Hidayat, S.Pd"
}
],
"3": [
{
"id": 50,
"subject": "Biologi",
"teacher": "Risma Fitriani, S.Pd"
}
],
"4": [],
"5": [],
"6": [],
"7": []
}
}
This is my HTML File
<ion-item *ngFor="let data of item" >
<div class="title">
<ion-row>
<ion-col col-12>
<h3><b>{{item.subject}}</b></h3>
<p>Teacher</p>
</ion-col>
</ion-row>
</div>
</ion-item>
I have tryto fetch json but Error trying to diff '[object Object how to Fix that ?
thanks