まあ、私はngtableを生成しようとしているが、これは正しい改ページを生成していない、私は例を以下だが、ページネーションが問題である何、私のために動作しませんで改ページを生成します。ngTables
function usersMainCtrl($scope, NgTableParams, usersFactory)
{
var tableData = []
//Table configuration
$scope.tableParams = new NgTableParams({
page: 1, // show first page
count: 5 // count per page
},{
//total:tableData.length,
filterDelay: 300,
//Returns the data for rendering
getData : function(params) {
return usersFactory.getUsers(params.url()).then(function(response) {
console.log(response);
console.log(params);
params.total(response.data.length);
return response.data;
});
}
});
}