{"action":"created","issue":{"url":"https://api.github.com/repos/samu/angular-table/issues/48","labels_url":"https://api.github.com/repos/samu/angular-table/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/samu/angular-table/issues/48/comments","events_url":"https://api.github.com/repos/samu/angular-table/issues/48/events","html_url":"https://github.com/samu/angular-table/issues/48","id":60700734,"number":48,"title":"pagination not resettng","user":{"login":"bigerock","id":4642901,"avatar_url":"https://avatars.githubusercontent.com/u/4642901?v=3","gravatar_id":"","url":"https://api.github.com/users/bigerock","html_url":"https://github.com/bigerock","followers_url":"https://api.github.com/users/bigerock/followers","following_url":"https://api.github.com/users/bigerock/following{/other_user}","gists_url":"https://api.github.com/users/bigerock/gists{/gist_id}","starred_url":"https://api.github.com/users/bigerock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigerock/subscriptions","organizations_url":"https://api.github.com/users/bigerock/orgs","repos_url":"https://api.github.com/users/bigerock/repos","events_url":"https://api.github.com/users/bigerock/events{/privacy}","received_events_url":"https://api.github.com/users/bigerock/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-11T17:56:04Z","updated_at":"2015-03-12T16:59:18Z","closed_at":"2015-03-12T13:43:56Z","body":"great table btw. thanks for developing it.\r\n\r\ni've found that when the list that the table is bound to updates, it doesn't reset the pagination to the beginning. i've changed the code locally to reflect a fix for this:\r\n\r\nline 595 in the update function\r\nif (reset) w.setCurrentPage(0);\r\n\r\nand line 635:\r\nscope.$watch($attributes.atList, function () {\r\nreturn update(true);\r\n}"},"comment":{"url":"https://api.github.com/repos/samu/angular-table/issues/comments/78527401","html_url":"https://github.com/samu/angular-table/issues/48#issuecomment-78527401","issue_url":"https://api.github.com/repos/samu/angular-table/issues/48","id":78527401,"user":{"login":"samu","id":1936709,"avatar_url":"https://avatars.githubusercontent.com/u/1936709?v=3","gravatar_id":"","url":"https://api.github.com/users/samu","html_url":"https://github.com/samu","followers_url":"https://api.github.com/users/samu/followers","following_url":"https://api.github.com/users/samu/following{/other_user}","gists_url":"https://api.github.com/users/samu/gists{/gist_id}","starred_url":"https://api.github.com/users/samu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samu/subscriptions","organizations_url":"https://api.github.com/users/samu/orgs","repos_url":"https://api.github.com/users/samu/repos","events_url":"https://api.github.com/users/samu/events{/privacy}","received_events_url":"https://api.github.com/users/samu/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T16:59:18Z","updated_at":"2015-03-12T16:59:18Z","body":"By the way, please note that this behaviour is intentional. If you are going to create a PR, there should be a configuration option to specify whether the table jumps to the first page or stays where it is."}}