简体   繁体   English

Bootstrap分页不适用于angular-ui-bootstrap / 2.5.0 / ui-bootstrap-tpls.js

[英]Bootstrap pagination does not work with angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js

Because of this thread , I need to use a high version of ui-bootstrap-tpls.js . 由于这个线程 ,我需要使用高版本的ui-bootstrap-tpls.js However, I realise that this disabled bootstrap pagination , which works with a lower version of ui-bootstrap-tpls.js . 但是,我意识到这个禁用的bootstrap pagination ,它与较低版本的ui-bootstrap-tpls.js

For example, this pagination works with https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.11.0/ui-bootstrap-tpls.js , whereas https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js does not work . 例如, 这个分页适用https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.11.0/ui-bootstrap-tpls.js ,而https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js 不起作用

Does anyone know what I could do? 有谁知道我能做什么?

Try this plunk with: 试试这个普拉克有:

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

instead of: 代替:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM