篩選我有一個簡單的分頁字母:數據綁定到在角
<div ng-controller="DataController">
<ul class="pagination">
<li ng-repeat="letter in data_letters">
<a href="#" ng-click="setLetter(letter)">{{letter}}</a>
</li>
</ul>
<table class="table table-striped">
<tbody>
<tr>
<th>Name</th>
<th>State</th>
</tr>
<tr ng-repeat="person in persons | startsWithLetter:letter">
<td>{{person.Name}}</td>
<td>{{person.State}}</td>
</tr>
</tbody>
</table>
</div>
什麼是綁定信(上,我們點擊了paginaton)表過濾器最簡單的方法。 這裏是一個功能齊全的plunkr:http://plnkr.co/edit/Trr5LzrcMfZqonD0jvjX?p=preview
我已經實現了一切。這只是缺少的數據綁定。有任何想法嗎?
謝謝,那真的很好:) –
不客氣。 – jbrown