I want to know if there is a way to dynamically merge identical cells, using angularjs, in the picture below, if I have 2 with the same value for each.
$scope.rows = ['Row 1', 'Row 2', 'Row 1'];
<td rowspan="2">{{row}}</td>
So I need to calculate dynamically the number of identical cells and at the same time get a table, not stairs :D because I tried to make
<td rowspan="{{row.length}}">{{row}}</td>
and I got some beautiful stairs... I need your help
I am using it inside an ng-repeat. Here's my code:
<tr ng-repeat="rowContent in rows track by $index">
<td>{{rowContent}}</td>
<td>{{rowContent}}</td>
<td>{{rowContent}}</td>
</tr>
If the same value occurs more than once, I should merge the cells and get this result:
I am using Angular 1.X I really need help on this part. Thank you