angularjs $filter过滤器问题
发布网友
发布时间:2022-05-09 21:14
我来回答
共1个回答
热心网友
时间:2022-04-22 16:29
推荐使用angular-ui-grid:
controller:
var app = angular.mole('app', ['ngTouch', 'ui.grid', 'ui.grid.pagination']);
app.controller('MainCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.gridOptions1 = {
paginationPageSizes: [25, 50, 75],
paginationPageSize: 25,
columnDefs: [
{ name: 'name' },
{ name: 'gender' },
{ name: 'company' }
]
};
}]);
html:
<div ui-grid="gridOptions1" ui-grid-pagination class="grid"></div>