ui-bootstrap-tpls 1.0.0 或下一个分页不显示

pagination on ui-bootstrap-tpls 1.0.0 or next do not display

我使用 ui-bootstrap-tpls

的 "pagination" 指令
<pagination total-items="totalItems" ng-model="currentPage" ng-change="pageChanged()"></pagination>

plnkr Demo 和 ui-bootstrap-tpls 的 0.14.3 是 OK

plnkr Demo ui-bootstrap-tpls 的 1.0.0 是 KO

请问应该怎么修改?

所有 bootstrap 指令已重命名。 (即分页 -> uib-分页)看 https://angular-ui.github.io/bootstrap/ - 那里的分页示例也适用于 ui-bootstrap-tpls 的 1.0.0。

在版本 0.x.x 中您使用 (demo):

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

在版本 1.x.x 中你需要使用 (demo):

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

在版本 2.x.x 中你需要使用 (demo):

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