这里我使用的是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>
答案 0 :(得分:0)
请查看文件https://angular-ui.github.io/bootstrap/#!#pagination
使用Pagination作为属性,它不是元素,因为分页指令的限制是'A' 例如:
<ul uib-pagination total-items="totalItems" ng-model="currentPage" ng-change="pageChanged()"></ul>