I have updated the code and the output I am getting like this:
So in the output table, endTime, period and monday are headers. For EndTime I want to display only endtime of the monday array but it is displaying an entire array. How do I specifically display only endTime data. Same goes for period.
Here is the plunker Timetable
Where am I going wrong?
Index.view.html
<table class="table table-bordered">
<tr>
<th class="endTime" ng-model="monday.endTime">End Time</th>
<td ng-repeat="d in data track by $index">{{d}}</td>
</tr>
<tr>
<th class="period" ng-model="monday.period">Peroid</th>
<td ng-repeat="d in data track by $index">{{d}}</td>
</tr>
<tr><th class="days">Monday</th></tr>
</table>
Index.controller.js
.controller('Admin.IndexController',function($scope,$http,$location,$rootScope,fileUpload)
{
$scope.college_id='583b01ce6864990011c12ec6';
var i =0;
$http.get('https://student.herokuapp.com/college/'+$scope.college_id)
.success(function(response){
// for(var i=0;i<tableLen;i++){
console.log(response.college);
$scope.data = response.college.timeTableTemplate;
console.log($scope.data);
});
})
JSON Array
"monday": [
{
"endTime": "08:50 AM",
"startTime": "08:00 AM",
"duration": "50",
"period": "A"
},
{
"endTime": "08:50 AM",
"startTime": "08:00 AM",
"duration": "50",
"period": "A"
}

ng-repeatdirective?