Below is a sample JSON data getting from a service request.
{
"sunday": [
{
"endTime": "08:50 AM",
"startTime": "08:00 AM",
"duration": "50",
"period": "A"
},
{
"endTime": "08:50 AM",
"startTime": "08:00 AM",
"duration": "50",
"period": "A"
}
]
}
This is my html code for startTime (of course there are other values too)
<td ng-repeat="d in data.sunday.startTime track by $index">{{ d }}</td>
Controller Code
$http.get('https://url')
.success(function(response){
$scope.data = response;
console.log($scope.data);
});
I am trying to display the data in a table format but I am not able to do it. When I console I could see the value but not in frontend table structure. Is it something to do with JSON structure or with my html?
Here is the plunker.
<td ng-repeat="d in data.sunday track by $index">{{ d.startTime }}</td>