I am currently working on a project using AngularJS.
The data I have is in the form of JSON:
{
"leagues":{
"aLeague":{
"country":"aCountry",
"matchs":{
"aUniqueID1":{
"date":"2014-09-07 13:00:00",
"guest_player":"Me",
"host_player":"Tom",
"odds":{
"guest":"2.80",
"host":"2.25",
"null":"2.85"
},
"score":"0 - 0"
},
"aUniqueID2":{
"date":"2014-09-07 18:30:00",
"guest_player":"Bryan",
"host_player":"Me",
"odds":{
"guest":"3.25",
"host":"1.98",
"null":"2.95"
},
"score":"0 - 0"
}
}
}
}
}
I would like to iterate through the data and display the guest_player
and host_player
fields using ng-repeat
.
However, I am facing difficulty accessing the data within aUniqueID1
or aUniqueID2
.
Does anyone have any ideas on how to solve this issue?