Angularjs 使用ngGrid的客户端分页

Angularjs 使用ngGrid的客户端分页,angularjs,Angularjs,正在尝试在客户端进行分页 我的代码: angular.module('MainViewController', []).controller('DashboardController', function ($scope,$http, DashboardService) { $scope.jobsData = []; DashboardService.getDashboardData().then(function (response) { if (!response

正在尝试在客户端进行分页

我的代码:

angular.module('MainViewController', []).controller('DashboardController', function ($scope,$http, DashboardService) {

    $scope.jobsData = [];

DashboardService.getDashboardData().then(function (response) {
        if (!response) return;
        $scope.jobsData = response;        
    });


 $scope.getPagedDataAsync = function (pageSize, page) {
        setTimeout(function () {           
                $scope.setPagingData($scope.jobsStatus, page, pageSize);       
        }, 100);
    };
不确定在没有Json返回类型的情况下如何设置getPagedDataAsync