I am trying to insert data to table with ngrepeat but no success
I have list with data
$scope.chart= {
labels: [],
data: []
};
if printing out chart.data I get list [0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
So, I want to separate comma values from that data list to different table cells with ng-repeat attribute.
I tried smt like this but did not work:
<div ng-controller="Controller">
<table>
<tr ng-repeat="item in chart">
<td>{{$index + 1}}</td>
<td>{{item.labels}}</td>
<td>{{item.data}}</td>
</tr>
</table>
</div>
Probably there is something wrong in my controller?