UI-Bootstrap 升级到 1.2.5 后分页不起作用

UI-Bootstrap pagination doesn't work when I upgrade to 1.2.5

我使用 ui-bootstrap-tpls-0.11.0.js 实现了分页。现在当我升级到 ui-bootstrap-tpls-1.2.5.js,分页不起作用

是否有任何使用 ui-bootstrap-tpls-1.2.5.js 进行分页的示例。 在当前的实现中,我使用如下

<pagination total-items="totalItems" ng-model="currentPage"  
    max-size="5" boundary-links="true"  
    items-per-page="numPerPage" class="pagination-sm">  
</pagination>

您的迁移即将结束。

来自文档

Since version 0.14.0 we started to prefix all our components. If you are upgrading from ui-bootstrap 0.13.4 or earlier, check our migration guide

您要查找的指令名称是uib-pagination

检查语法 here

因此,您的新标记(适用于版本 1.2.5)看起来像这样

<uib-pagination total-items="totalItems" ng-model="currentPage"  
    max-size="5" boundary-links="true"  
    items-per-page="numPerPage" class="pagination-sm">  
</uib-pagination>