I have an object with a data structure as below,
data = {};
data[user1] = {
name: "apple",
Company: "001"
};
data[user2] = {
name: "apple",
Company: "002"
};
data[user3] = {
name: "orange",
Company: "003"
};
The object would get updated whenever a new user is added
I'm iterating this object using ng-repeat to present the data in a tabular format,
<table>
<thead>
<tr>
<td>Name</td>
<td>Company</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="(key, value) in data">
<td>{{$parent.data[key].name}}</td>
<td>{{$parent.data[key].Company}}</td>
</tr>
</tbody>
</table>
What i'm trying to see in the table is, since "user1" and "user2" has same names i want that to be printed once with a rowspan of 2. is that something possible?
With this data the table would look like this,
what i try to get is,