为什么Angular bootstrap不显示分页按钮

时间:2017-05-30 06:40:24

标签: angularjs twitter-bootstrap pagination

这里我使用的是Angularjs bootstrap和Bootstrap。我想显示Angular分页,但它不会显示。

Master.html

<script src="../../Script/angular.js"></script>
<script src="../../Script/angular-route.js"></script>
<script src="../../Script/angular-loader.js"></script>
<script src="../../Script/ui-bootstrap-tpls-2.5.0.js"></script>

Child.html

<h5>Total page{{Employee.length}}</h5>
<pagination total-items="Employee.length" ng-model="currentPage" items-per-page="pagesize">
</pagination>

1 个答案:

答案 0 :(得分:0)

enter image description here请查看文件https://angular-ui.github.io/bootstrap/#!#pagination

使用Pagination作为属性,它不是元素,因为分页指令的限制是'A' 例如:

<ul uib-pagination total-items="totalItems" ng-model="currentPage" ng-change="pageChanged()"></ul>