{"action":"created","issue":{"url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/176","repository_url":"https://api.github.com/repos/daniel-nagy/md-data-table","labels_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/176/comments","events_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/176/events","html_url":"https://github.com/daniel-nagy/md-data-table/issues/176","id":114664029,"number":176,"title":"Is there a way to reset pagination if there is a change in md-total (i.e change in the total number of rows)","user":{"login":"sbharadwaj92","id":8407148,"avatar_url":"https://avatars.githubusercontent.com/u/8407148?v=3","gravatar_id":"","url":"https://api.github.com/users/sbharadwaj92","html_url":"https://github.com/sbharadwaj92","followers_url":"https://api.github.com/users/sbharadwaj92/followers","following_url":"https://api.github.com/users/sbharadwaj92/following{/other_user}","gists_url":"https://api.github.com/users/sbharadwaj92/gists{/gist_id}","starred_url":"https://api.github.com/users/sbharadwaj92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbharadwaj92/subscriptions","organizations_url":"https://api.github.com/users/sbharadwaj92/orgs","repos_url":"https://api.github.com/users/sbharadwaj92/repos","events_url":"https://api.github.com/users/sbharadwaj92/events{/privacy}","received_events_url":"https://api.github.com/users/sbharadwaj92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-02T19:12:46Z","updated_at":"2016-04-04T08:41:28Z","closed_at":null,"body":"I want to reset the pagination after there is a change with the total number of rows"},"comment":{"url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/comments/205197368","html_url":"https://github.com/daniel-nagy/md-data-table/issues/176#issuecomment-205197368","issue_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/176","id":205197368,"user":{"login":"patfrat","id":116576,"avatar_url":"https://avatars.githubusercontent.com/u/116576?v=3","gravatar_id":"","url":"https://api.github.com/users/patfrat","html_url":"https://github.com/patfrat","followers_url":"https://api.github.com/users/patfrat/followers","following_url":"https://api.github.com/users/patfrat/following{/other_user}","gists_url":"https://api.github.com/users/patfrat/gists{/gist_id}","starred_url":"https://api.github.com/users/patfrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patfrat/subscriptions","organizations_url":"https://api.github.com/users/patfrat/orgs","repos_url":"https://api.github.com/users/patfrat/repos","events_url":"https://api.github.com/users/patfrat/events{/privacy}","received_events_url":"https://api.github.com/users/patfrat/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T08:41:28Z","updated_at":"2016-04-04T08:41:28Z","body":"I have had the same problem that i resolved by using a filtered parameter and setting page to 1 whenever a filter changed\r\n\r\n```\r\n<md-table-pagination md-total=\"{{filtered.length}}\" ...></md-table-pagination>\r\n...\r\n<tr md-row ng-repeat=\"item in filtered = (items | filter: myFilters)\">\r\n...\r\n</tr>\r\n```\r\n"}}