分頁按鈕沒有顯示在我的html頁面中。ng-table分頁按鈕不顯示
以下是html頁面。
<div id="home">
<table ng-table="homeVm.customConfigParams" class="table table-condensed table-bordered table-striped" show-filter="true">
<tr ng-repeat="user in $data">
<td title="'Name'" filter="{ name: 'text'}" sortable="'name'">
{{user.name}}</td>
<td title="'Age'" filter="{ age: 'number'}" sortable="'age'">
{{user.age}}</td>
</tr>
</table>
</div>
這裏是控制頁面:
function HomeController(NgTableParams) {
var vm = this;
var data = [ {name: "Moroni", age: 50}, {name: "Moroni", age: 50}, /*....*/]
function createUsingFullOptions() {
var initialParams = {
count: 10, // initial page size
};
var initialSettings = {
// page size buttons (right set of buttons in demo)
counts: [],
// determines the pager buttons (left set of buttons in demo)
paginationMaxBlocks: 3,
paginationMinBlocks: 2,
dataset: data
};
return new NgTableParams(initialParams, initialSettings);
}
我需要顯示分頁按鈕。
請提供一個相同的普拉克。 –