{"action":"created","issue":{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/197","labels_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/197/comments","events_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/197/events","html_url":"https://github.com/Zizzamia/ng-tasty/issues/197","id":124179130,"number":197,"title":"Page number is incorrect","user":{"login":"sharok","id":10895393,"avatar_url":"https://avatars.githubusercontent.com/u/10895393?v=3","gravatar_id":"","url":"https://api.github.com/users/sharok","html_url":"https://github.com/sharok","followers_url":"https://api.github.com/users/sharok/followers","following_url":"https://api.github.com/users/sharok/following{/other_user}","gists_url":"https://api.github.com/users/sharok/gists{/gist_id}","starred_url":"https://api.github.com/users/sharok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharok/subscriptions","organizations_url":"https://api.github.com/users/sharok/orgs","repos_url":"https://api.github.com/users/sharok/repos","events_url":"https://api.github.com/users/sharok/events{/privacy}","received_events_url":"https://api.github.com/users/sharok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/labels/investigation","name":"investigation","color":"0084b4"}],"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/32","html_url":"https://github.com/Zizzamia/ng-tasty/milestones/Version%200.6.1","labels_url":"https://api.github.com/repos/Zizzamia/ng-tasty/milestones/32/labels","id":1460227,"number":32,"title":"Version 0.6.1","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":5,"closed_issues":4,"state":"open","created_at":"2015-12-14T21:40:50Z","updated_at":"2015-12-30T02:51:56Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-12-29T08:17:19Z","updated_at":"2015-12-30T03:51:38Z","closed_at":null,"body":"I have code:\r\n```js\r\n$scope.init = {\r\n  count: ENV.pageSize,\r\n  page: 1,\r\n  sortBy: 'Name',\r\n  sortOrder: 'dsc',\r\n  listItemsPerPage: [60, 120, 180, 250]\r\n};\r\n\r\n$scope.loadData = function (params, paramsObj) {\r\n  return $scope.getData(paramsObj).then(function (response) {\r\n    $scope.rows = response.Results;\r\n\r\n    return {\r\n      rows: response.Results || [],\r\n      header: $scope.headers,\r\n      sortBy: paramsObj.sortBy,\r\n      sortOrder: paramsObj.sortOrder,\r\n      pagination: {\r\n        count: paramsObj.count,\r\n        page: paramsObj.page,\r\n        size: response.TotalCount\r\n      }\r\n    };\r\n  }, function (err) {\r\n    messageService.alert(err.Message, messageService.messageTypes.error);\r\n  });\r\n};\r\n```\r\n\r\nI use filter also. When I have rows which mathces with filter then all works fine, but when there are no rows I have double requests. The first the request is when I change filter and I get response with empty rows and other params. It's ok. But after I have another request with page=0. And, I don't know why and this breaks my server code.\r\nMy code works fine on 0.5.8 version, but  the  problem starts with 0.5.9."},"comment":{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/comments/167932307","html_url":"https://github.com/Zizzamia/ng-tasty/issues/197#issuecomment-167932307","issue_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/197","id":167932307,"user":{"login":"sharok","id":10895393,"avatar_url":"https://avatars.githubusercontent.com/u/10895393?v=3","gravatar_id":"","url":"https://api.github.com/users/sharok","html_url":"https://github.com/sharok","followers_url":"https://api.github.com/users/sharok/followers","following_url":"https://api.github.com/users/sharok/following{/other_user}","gists_url":"https://api.github.com/users/sharok/gists{/gist_id}","starred_url":"https://api.github.com/users/sharok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharok/subscriptions","organizations_url":"https://api.github.com/users/sharok/orgs","repos_url":"https://api.github.com/users/sharok/repos","events_url":"https://api.github.com/users/sharok/events{/privacy}","received_events_url":"https://api.github.com/users/sharok/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T03:51:38Z","updated_at":"2015-12-30T03:51:38Z","body":"@Zizzamia I tryed 0.6.0. The problem still exists"}}