每次border-fat-bottom
值更改
property
添加到我的td中
这是我的数据
vm.doubleBookings: [
{
"_id": "AA001",
"property": "ATL-406",
"name": "Torben Tenant"
},
{
"_id": "AA002",
"property": "ATL-406",
"name": "whatever"
},
{
"_id": "AA004",
"property": "WAT-806",
"name": "Torben Tenant"
},
{
"_id": "AA005",
"property": "WAT-806",
"name": "whatever"
},
{
"_id": "AA006",
"property": "WAT-806",
"name": "whatever"
},
{
"_id": "AA007",
"property": "ANA-202",
"name": "whatever"
}
{
"_id": "AA007",
"property": "ZOK-440",
"name": "whatever"
}
]
这是我的ng-repeat
<tr ng-repeat="bookings in vm.doubleBookings" class="start-text">
<td class="border-thin-top">{{ bookings._id}}</td>
<td class="border-thin-top">{{ bookings.property }}</td>
<td class="border-thin-top">{{ bookings.name }}</td>
</tr>
所以...
ATL-406
将有一个正常行,一个有胖底
WAT-806
有两个正常行,一个有胖底
ANA-202
会有一个胖底
答案 0 :(得分:1)
componentWillMount