Here is a collection of objects I am working with:
[{
key:test1
name: name1
},
{
key:test1
name: name2
},
{
key:test2
name: name3
}]
I am currently using ng-repeat
to showcase them:
<tr ng-repeat=item in list>
<td>{{item.key}}</td>
<td>{{item.name}}</td>
</tr>
I am wondering if there is a way to merge values with the same keys without altering the structure, so that test1 is not repeated twice like in my example.
Current output:
test1 : name1
test1 : name2
test2 : name3
Desired output:
test1 : name1
_____ name2
test2 : name3