http://angular-ui.github.io/bootstrap/#/pagination
分页组件只提供生成分页按钮,数据的显示需要使用ng-repeat, 注意设置 items-per-page
<div class="col-md-12" ng-show="searched_tasks.length">
<table class="table table-bordered">
<tr>
<th>序列号</th>
<th>项目</th>
<th>任务</th>
<th>当前状态</th>
<th>负责人</th>
<th>操作</th>
</tr>
<!-- <tr ng-repeat="(key, v) in searched_tasks | limitTo:search.pageSize:(search.currentPage-1)*search.pageSize"> -->
<tr ng-repeat="(key, v) in searched_tasks">
<td title="点击查看详情"><a ui-sref="app.task_detail({taskid:v.item_id})">{{v.item_id}}</a></td>
<td>{{v.project_name}}</td>
<td>{{v.item_name}}</td>
<td>{{v.item_status_name}}</td>
<td>{{v.manager_full_name}}</td>
<td><a ui-sref="app.task_edit({taskid:v.item_id})"><span class="glyphicon glyphicon-edit"></span> 编辑</a></td>
</tr>
</table>
<!-- 分页组件 -->
<ul uib-pagination ng-show="search.totalItems" total-items="search.totalItems" items-per-page="search.pageSize" class="pagination-sm" boundary-link-numbers="true" ng-change="pageChanged()" ng-model="search.currentPage"></ul>
</div>