I have an object like
{
"2015": ["path",0, 0],
"2016": ["path",0, 0],
"2017": ["path",0, 0],
"2018": ["path",0, 0],
}
Using ng-repeat I am trying to display the info as a grid like below.
<div class = "row">
<div class = "col-sm-4"></div>
<div class = "col-sm-4"></div>
<div class = "col-sm-4"></div>
</div>
I have tried the following code
<div ng-repeat="(exam, data) in imageJSON">
<div class="row grid-divider" ng-if="$index%3 == 0">
<div class="col-sm-3">{{exam}} {{index}}
<div class="col-sm-3">{{exam}} {{index + 1}}
<div class="col-sm-3">{{exam}} {{index + 2}}
</div>
</div>
I want it to display like below
table,
th,
td {
border: 1px solid black;
}
<table>
<tr>
<td>
2014
<br>"path"
</td>
<td>
2015
<br>"path"
</td>
<td>
2016
<br>"path"
</td>
</tr>
<tr>
<td>
2017
<br>"path"
</td>
<td>
2018
<br>"path"
</td>
<td>
2019
<br>"path"
</td>
</tr>
</table>