Ich habe ein Objekt wieAngular ng-repeat Index des Objekts
{
"2015": ["path",0, 0],
"2016": ["path",0, 0],
"2017": ["path",0, 0],
"2018": ["path",0, 0],
}
Mit ng-repeat Ich versuche, wie unten die Informationen als Gitter angezeigt werden soll.
<div class = "row">
<div class = "col-sm-4"></div>
<div class = "col-sm-4"></div>
<div class = "col-sm-4"></div>
</div>
Ich habe den folgenden Code versucht
<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>
ich will es wie angezeigt unter
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>
zeigen, was Sie –
Dank versucht haben, aktualisiert die Frage – AbiSivam