我已经看过这个问题,解决方案非常简单,但是这柱塞似乎不适用于在我的项目中使用的角1.33。
下面是同一柱塞的问题(只更新到1.33版的角度)。
<table ng-table="tableParams" show-filter="true" class="table">
<tr class='listing' ng-repeat="invoice in $data">
<td data-title="'Invoice No.'" sortable="'no'" filter="{'no':'text'}">
{{invoice.no}}
</td>
<td data-title="'Date'" sortable="'date'" filter="{'date':'text'}">
{{invoice.date}}
</td>
<td data-title="'Client'" sortable="'client.fullname'" filter="{'client.fullname':'text'}">
{{invoice.client.fullname}}
</td>
</tr>
</table>发布于 2014-11-24 14:31:05
使用排序和筛选器,ngtable 0.3.1 - 扑通
<table ng-table="tableParams" show-filter="true" class="table">
<tr class='listing' ng-repeat="invoice in $data">
<td data-title="'Invoice No.'" sortable="'no'" filter="{'no':'text'}">
{{invoice.no}}
</td>
<td data-title="'Date'" sortable="'date'" filter="{'date':'text'}">
{{invoice.date}}
</td>
<td data-title="'Client'" sortable="'client.fullname'" filter="{'client':'text'}">
{{invoice.client.fullname}}
</td>
</tr>
</table>https://stackoverflow.com/questions/27105972
复制相似问题