【问题标题】:Bootstrap pagination does not work with angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js引导分页不适用于 angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.js
【发布时间】:2017-04-26 05:13:27
【问题描述】:

因为this thread,需要使用高版本的ui-bootstrap-tpls.js。但是,我意识到这禁用了bootstrap pagination,它适用于较低版本的ui-bootstrap-tpls.js

例如,this pagination workshttps://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 not work

有人知道我能做什么吗?

【问题讨论】:

    标签: javascript angularjs twitter-bootstrap pagination angular-ui-bootstrap


    【解决方案1】:

    试试这个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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-04
      • 2015-05-04
      • 2014-09-18
      • 2014-08-14
      • 2013-03-01
      • 2019-10-19
      • 1970-01-01
      • 2014-04-08
      相关资源
      最近更新 更多