{"action":"created","issue":{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/142","labels_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/142/comments","events_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/142/events","html_url":"https://github.com/Zizzamia/ng-tasty/issues/142","id":86601218,"number":142,"title":"Server Side search pagination","user":{"login":"cubasepp","id":4363766,"avatar_url":"https://avatars.githubusercontent.com/u/4363766?v=3","gravatar_id":"","url":"https://api.github.com/users/cubasepp","html_url":"https://github.com/cubasepp","followers_url":"https://api.github.com/users/cubasepp/followers","following_url":"https://api.github.com/users/cubasepp/following{/other_user}","gists_url":"https://api.github.com/users/cubasepp/gists{/gist_id}","starred_url":"https://api.github.com/users/cubasepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubasepp/subscriptions","organizations_url":"https://api.github.com/users/cubasepp/orgs","repos_url":"https://api.github.com/users/cubasepp/repos","events_url":"https://api.github.com/users/cubasepp/events{/privacy}","received_events_url":"https://api.github.com/users/cubasepp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Zizzamia","id":829214,"avatar_url":"https://avatars.githubusercontent.com/u/829214?v=3","gravatar_id":"","url":"https://api.github.com/users/Zizzamia","html_url":"https://github.com/Zizzamia","followers_url":"https://api.github.com/users/Zizzamia/followers","following_url":"https://api.github.com/users/Zizzamia/following{/other_user}","gists_url":"https://api.github.com/users/Zizzamia/gists{/gist_id}","starred_url":"https://api.github.com/users/Zizzamia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zizzamia/subscriptions","organizations_url":"https://api.github.com/users/Zizzamia/orgs","repos_url":"https://api.github.com/users/Zizzamia/repos","events_url":"https://api.github.com/users/Zizzamia/events{/privacy}","received_events_url":"https://api.github.com/users/Zizzamia/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/milestones/28","html_url":"https://github.com/Zizzamia/ng-tasty/milestones/Version%200.5.6","labels_url":"https://api.github.com/repos/Zizzamia/ng-tasty/milestones/28/labels","id":1162917,"number":28,"title":"Version 0.5.6","description":"","creator":{"login":"Zizzamia","id":829214,"avatar_url":"https://avatars.githubusercontent.com/u/829214?v=3","gravatar_id":"","url":"https://api.github.com/users/Zizzamia","html_url":"https://github.com/Zizzamia","followers_url":"https://api.github.com/users/Zizzamia/followers","following_url":"https://api.github.com/users/Zizzamia/following{/other_user}","gists_url":"https://api.github.com/users/Zizzamia/gists{/gist_id}","starred_url":"https://api.github.com/users/Zizzamia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zizzamia/subscriptions","organizations_url":"https://api.github.com/users/Zizzamia/orgs","repos_url":"https://api.github.com/users/Zizzamia/repos","events_url":"https://api.github.com/users/Zizzamia/events{/privacy}","received_events_url":"https://api.github.com/users/Zizzamia/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-06-13T03:14:37Z","updated_at":"2015-06-23T23:06:30Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-06-09T13:32:27Z","updated_at":"2015-06-24T08:21:10Z","closed_at":null,"body":"Hi,\r\n\r\nfor example. \r\nIf you stay on page 5 and search for something and the result has only 2 pages you get an empty response from the server. Because the ngTasty doesn't reset the page attribute after  the filter function was called. ( // AngularJs $watch callbacks if ($attrs.bindFilters) {  .. })\r\n\r\nMaybe you have to reset the page attribute so you get a result. \r\n\r\n\r\n\r\nhttp://zizzamia.com/ng-tasty/directive/table-server-side/complete you can see it on your demo.\r\n\r\ngo on page 4 and search for something on page 1 but your page attribute stays on 4 so you see no result. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/comments/114779407","html_url":"https://github.com/Zizzamia/ng-tasty/issues/142#issuecomment-114779407","issue_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/142","id":114779407,"user":{"login":"cubasepp","id":4363766,"avatar_url":"https://avatars.githubusercontent.com/u/4363766?v=3","gravatar_id":"","url":"https://api.github.com/users/cubasepp","html_url":"https://github.com/cubasepp","followers_url":"https://api.github.com/users/cubasepp/followers","following_url":"https://api.github.com/users/cubasepp/following{/other_user}","gists_url":"https://api.github.com/users/cubasepp/gists{/gist_id}","starred_url":"https://api.github.com/users/cubasepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubasepp/subscriptions","organizations_url":"https://api.github.com/users/cubasepp/orgs","repos_url":"https://api.github.com/users/cubasepp/repos","events_url":"https://api.github.com/users/cubasepp/events{/privacy}","received_events_url":"https://api.github.com/users/cubasepp/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T08:21:10Z","updated_at":"2015-06-24T08:21:10Z","body":"You have to reset the page attribute at the URL. \r\n\"table.json?sort-by=name&sort-order=dsc&page=3&count=5&name=Wick\"\r\n\r\nThe result have only 1 page but we display Page 3... ;) \r\n\r\nThx Zizzamia"}}