编程语言
首页 > 编程语言> > javascript-Bootstrap分页不适用于angular-ui-bootstrap / 2.5.0 / ui-bootstrap-tpls.js

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

作者:互联网

由于this thread,我需要使用较高版本的ui-bootstrap-tpls.js.但是,我意识到此禁用的引导程序分页功能可与ui-bootstrap-tpls.js的较低版本一起使用.

例如,使用https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.11.0/ui-bootstrap-tpls.js的this pagination works,而https://cdnjs.cloudflare.com/ajax/ libs / angular-ui-bootstrap / 2.5.0 / ui-bootstrap-tpls.js does not work.

有人知道我能做什么吗?

解决方法:

尝试使用以下plunk

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

代替:

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

标签:angularjs,twitter-bootstrap,angular-ui-bootstrap,pagination,javascript
来源: https://codeday.me/bug/20191026/1933424.html