I am working with an object structured like:
{
"2015": ["path",0, 0],
"2016": ["path",0, 0],
"2017": ["path",0, 0],
"2018": ["path",0, 0],
}
My goal is to display this information in a grid format using ng-repeat. The desired layout is as follows:
<div class = "row">
<div class = "col-sm-4"></div>
<div class = "col-sm-4"></div>
<div class = "col-sm-4"></div>
</div>
I have attempted the following code snippet:
<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 aim for the output to resemble a table-like structure in which each item is displayed within a bootstrap grid. How can I achieve this by iterating over the object and utilizing their respective indexes?