I have a table where I need to duplicate the table columns when the ID change in the received array.
The array consists of result=[{"id":"1","Dia":"250.0","inicial":"1050.0","final":"1050.0","DIAS":"800.0"},
{"id":"1","Dia":"250.0","inicial":"1050.0","final":"1050.0","DIAS":"800.0"},{"id":"2","Dia":"250.0","inicial":"1050.0","final":"1050.0","DIAS":"800.0"},{"id":"2","Dia":"250.0","inicial":"1050.0","final":"1050.0","DIAS":"800.0"}]
<table class="table table-striped">
<tr>
<th></th>
<th>Inicio</th>
<th>Fim</th>
<th>Total</th>
</tr>
<tr ng-repeat="r in result">
<td align="center">{{r.Dia}}</td>
<td align="center">{{r.inicial}}</td>
<td align="center">{{r.final}}</td>
<td align="center">{{r.DIAS}}</td>
</tr>
</table>
To get something like this:
Table: