{"action":"created","issue":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/352","labels_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/352/comments","events_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/352/events","html_url":"https://github.com/l-lin/angular-datatables/issues/352","id":90629598,"number":352,"title":"Server side paging with $http","user":{"login":"jamescrosswell","id":728212,"avatar_url":"https://avatars.githubusercontent.com/u/728212?v=3","gravatar_id":"","url":"https://api.github.com/users/jamescrosswell","html_url":"https://github.com/jamescrosswell","followers_url":"https://api.github.com/users/jamescrosswell/followers","following_url":"https://api.github.com/users/jamescrosswell/following{/other_user}","gists_url":"https://api.github.com/users/jamescrosswell/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescrosswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescrosswell/subscriptions","organizations_url":"https://api.github.com/users/jamescrosswell/orgs","repos_url":"https://api.github.com/users/jamescrosswell/repos","events_url":"https://api.github.com/users/jamescrosswell/events{/privacy}","received_events_url":"https://api.github.com/users/jamescrosswell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/l-lin/angular-datatables/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-24T09:58:27Z","updated_at":"2015-07-23T15:24:21Z","closed_at":null,"body":"I have server side paging working over AJAX. However the rest of my app is using the $http service and I have some functionality build around that (such as an HTTP interceptor that does smart stuff if the server returns 401 or 403).\r\n\r\nIs there any way to use angular data tables with server side processing (paging, sorting etc.) but using the $http service rather than jQuery ajax calls?\r\n\r\nCheers,\r\nJames"},"comment":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/comments/124138891","html_url":"https://github.com/l-lin/angular-datatables/issues/352#issuecomment-124138891","issue_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/352","id":124138891,"user":{"login":"l-lin","id":5452304,"avatar_url":"https://avatars.githubusercontent.com/u/5452304?v=3","gravatar_id":"","url":"https://api.github.com/users/l-lin","html_url":"https://github.com/l-lin","followers_url":"https://api.github.com/users/l-lin/followers","following_url":"https://api.github.com/users/l-lin/following{/other_user}","gists_url":"https://api.github.com/users/l-lin/gists{/gist_id}","starred_url":"https://api.github.com/users/l-lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-lin/subscriptions","organizations_url":"https://api.github.com/users/l-lin/orgs","repos_url":"https://api.github.com/users/l-lin/repos","events_url":"https://api.github.com/users/l-lin/events{/privacy}","received_events_url":"https://api.github.com/users/l-lin/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T15:24:21Z","updated_at":"2015-07-23T15:24:21Z","body":"@surendrakumar1992, since your response contains an array of object, you need to provide columns and not columnDefs:\r\n```js\r\n$scope.dtColumns = [\r\n        DTColumnBuilder.newColumn('id').notSortable(),\r\n        DTColumnBuilder.newColumn('firstName').notSortable(),\r\n        DTColumnBuilder.newColumn('lastName').notSortable()\r\n\r\n    ];\r\n```"}}