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
由于,我需要使用ui-bootstrap-tpls.js
的高版本。但是,我意识到这个禁用 bootstrap pagination
,它适用于较低版本的 ui-bootstrap-tpls.js
。
例如,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.
有人知道我能做什么吗?
试试这个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>
由于ui-bootstrap-tpls.js
的高版本。但是,我意识到这个禁用 bootstrap pagination
,它适用于较低版本的 ui-bootstrap-tpls.js
。
例如,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.
有人知道我能做什么吗?
试试这个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>