0
私はangularjsで新しくなりました。私はhttps://angular-ui.github.io/bootstrap/#/paginationを使用しています。私はいくつかの問題があります。スタイルクラス= "改ページ改ページ-LG" 働いていない、私が使用していますブートストラップバージョン4.ヘルプme.Thanksをhttps://angular-ui.github.io/bootstrap/#/pagination class = "ページ区切り-lg"はブートストラップでは機能しません4
index.htmlを
<div>
<pre>You are currently on page {{userCtrl.page}}</pre>
<ul uib-pagination total-items="userCtrl.totalElements" ng-model="userCtrl.page" max-size="10000" class="pagination pagination-lg"
boundary-links="true" num-pages="userCtrl.totalPages">
</ul>
</div>
userController.js
module.exports = function (UserService) {
var _this = this;
_this.users = [];
_this.page = [];
_this.size = [];
_this.totalElements = [];
_this.totalPages = [];
_this.list = function() {
UserService.getUsersPage().then(function (response) {
console.log(response);
_this.users = response.content;
_this.page = response.number;
_this.size = response.numberOfElements;
_this.totalElements = response.totalElements;
_this.totalPages = response.totalPages;
})
};
_this.list();
};