{"action":"created","issue":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/340","repository_url":"https://api.github.com/repos/l-lin/angular-datatables","labels_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/340/comments","events_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/340/events","html_url":"https://github.com/l-lin/angular-datatables/issues/340","id":86870272,"number":340,"title":"Server side processing with angular promise","user":{"login":"CYCTina","id":5409996,"avatar_url":"https://avatars.githubusercontent.com/u/5409996?v=3","gravatar_id":"","url":"https://api.github.com/users/CYCTina","html_url":"https://github.com/CYCTina","followers_url":"https://api.github.com/users/CYCTina/followers","following_url":"https://api.github.com/users/CYCTina/following{/other_user}","gists_url":"https://api.github.com/users/CYCTina/gists{/gist_id}","starred_url":"https://api.github.com/users/CYCTina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CYCTina/subscriptions","organizations_url":"https://api.github.com/users/CYCTina/orgs","repos_url":"https://api.github.com/users/CYCTina/repos","events_url":"https://api.github.com/users/CYCTina/events{/privacy}","received_events_url":"https://api.github.com/users/CYCTina/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-06-10T07:19:42Z","updated_at":"2016-03-23T08:51:33Z","closed_at":"2016-03-07T14:35:24Z","body":"Hi, \r\n\r\nI can't really figure out a way to fully integrate $promise with angular datatable. \r\nHere are my requirement:\r\n1. Server side processing with angular $promise\r\n2. Data need to be retreive from the server everytime when: \r\n    - Pagination is clicked\r\n    - Search term is entered\r\n    - Page length is changed\r\n\r\n\r\nHere is what I get from the angular datatable documentation: \r\n1. [Server side processing option](https://l-lin.github.io/angular-datatables/#/serverSideProcessing)- as far as i understand, this is only suitable for ajax call, so it is not applicable in my case in which data needs to be reloaded with $promise. Plus, I don't really see how the pagination info, length, and search term are getting pass over to the server in this method.\r\n2. [DataReloadWithPromise](https://l-lin.github.io/angular-datatables/#/dataReloadWithPromise)-This might be closer to what i want, but again, i don't see how i can retrieve the pagination info, length, and search term here so i can pass over the parameters to the server/angular resource. \r\n\r\n\r\n**In sum, I hope someone can answer the following questions: \r\n1. How to retreive pagination info, length, and search term?\r\n2. How to bind a on click/change event to the column filters, pagination, and page length dropdown so i know when to request new data from the server using $promise.**\r\n\r\n\r\nAny help is appreciated! \r\n \r\n"},"comment":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/comments/200252902","html_url":"https://github.com/l-lin/angular-datatables/issues/340#issuecomment-200252902","issue_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/340","id":200252902,"user":{"login":"tomerpeled","id":1970687,"avatar_url":"https://avatars.githubusercontent.com/u/1970687?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerpeled","html_url":"https://github.com/tomerpeled","followers_url":"https://api.github.com/users/tomerpeled/followers","following_url":"https://api.github.com/users/tomerpeled/following{/other_user}","gists_url":"https://api.github.com/users/tomerpeled/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerpeled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerpeled/subscriptions","organizations_url":"https://api.github.com/users/tomerpeled/orgs","repos_url":"https://api.github.com/users/tomerpeled/repos","events_url":"https://api.github.com/users/tomerpeled/events{/privacy}","received_events_url":"https://api.github.com/users/tomerpeled/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T08:51:33Z","updated_at":"2016-03-23T08:51:33Z","body":"@enesaltinok perfect example, thanks!"}}