Json数据: -
[{
location: x,
id: 1,
name: A
},
{
location: x,
id: 2,
name: B
},
{
location: y,
id: 3,
name: C
},
{
location: y,
id: 4,
name: D
}
]
我想要这种格式的输出:
+----------+------+------+
| location | id | name |
+----------+------+------+
| | 1 | A |
| x +------+------+
| | 2 | B |
+----------+------+------+
| | 3 | C |
| y +------+------+
| | 4 | D |
+----------+------+------+
在Angular JS中我怎么能得到这种类型的输出。