{"action":"created","issue":{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/177","labels_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/177/comments","events_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/177/events","html_url":"https://github.com/Zizzamia/ng-tasty/issues/177","id":115008231,"number":177,"title":"Pagination not working properly after refreshing.","user":{"login":"Aryan97","id":15647841,"avatar_url":"https://avatars.githubusercontent.com/u/15647841?v=3","gravatar_id":"","url":"https://api.github.com/users/Aryan97","html_url":"https://github.com/Aryan97","followers_url":"https://api.github.com/users/Aryan97/followers","following_url":"https://api.github.com/users/Aryan97/following{/other_user}","gists_url":"https://api.github.com/users/Aryan97/gists{/gist_id}","starred_url":"https://api.github.com/users/Aryan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aryan97/subscriptions","organizations_url":"https://api.github.com/users/Aryan97/orgs","repos_url":"https://api.github.com/users/Aryan97/repos","events_url":"https://api.github.com/users/Aryan97/events{/privacy}","received_events_url":"https://api.github.com/users/Aryan97/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T09:23:55Z","updated_at":"2015-11-13T06:21:41Z","closed_at":"2015-11-13T06:21:40Z","body":"HI, im using server side pagination.\r\nhere is my  code:\r\n```js\r\n$scope.getResource = function (params, paramsObj) {\r\n\t\tif($scope.searchClick==false){\r\n\t\t\t$scope.filterBy = {};\r\n\t\t}\r\n\t\tif($scope.getFilterBy==null) {\r\n\t\t\t$scope.searchReq(paramsObj.page,paramsObj.count);\r\n\t\t} else {\r\n\t\t\t$scope.filterBy = $scope.getFilterBy;\r\n\t\t}\r\n\t\t$scope.filterBy.searchMode = 'grid';\r\n\t\t$scope.page = paramsObj.page;\r\n\t\t$scope.searchClick = true;\r\n\t\t$('.pageloaddiv').show();\r\n\t\treturn $http.post(ServerService.serverPath+'rest/ticket/trip/search',$scope.filterBy).then(function (response) {\r\n\t\t\tif(response.data.data!='null' && response.data.status=='SUCCESS') {\r\n\t\t\t\t$scope.ticketSearchRes = response.data.data.ticketTripBeanList;\r\n\t\t\t\t$scope.totalCount = response.data.data.totalCount;\r\n\t\t\t\t$('.pageloaddiv').hide();\r\n\t\t\t\treturn {\r\n  \"header\": [],\r\n  \"rows\": response.data.data.ticketTripBeanList,\r\n  \"pagination\": {\r\n    \"count\": 10,\r\n    \"page\": $scope.page,\r\n    \"pages\": response.data.data.totalCount/10,\r\n    \"size\": response.data.data.totalCount\r\n  }\r\n\t\t\t\t};\r\n\t\t\t}else{\r\n\t\t\t\t$scope.ticketSearchRes = [];\r\n\t\t\t\t$scope.usermsg = false;\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n```\r\n\r\nevery thing works fine...but after refreshing or reloading my page, the pagination not working properly. Only the first page data displaying for all pages.\r\nPls provide a solution\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/comments/156337097","html_url":"https://github.com/Zizzamia/ng-tasty/issues/177#issuecomment-156337097","issue_url":"https://api.github.com/repos/Zizzamia/ng-tasty/issues/177","id":156337097,"user":{"login":"Aryan97","id":15647841,"avatar_url":"https://avatars.githubusercontent.com/u/15647841?v=3","gravatar_id":"","url":"https://api.github.com/users/Aryan97","html_url":"https://github.com/Aryan97","followers_url":"https://api.github.com/users/Aryan97/followers","following_url":"https://api.github.com/users/Aryan97/following{/other_user}","gists_url":"https://api.github.com/users/Aryan97/gists{/gist_id}","starred_url":"https://api.github.com/users/Aryan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aryan97/subscriptions","organizations_url":"https://api.github.com/users/Aryan97/orgs","repos_url":"https://api.github.com/users/Aryan97/repos","events_url":"https://api.github.com/users/Aryan97/events{/privacy}","received_events_url":"https://api.github.com/users/Aryan97/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T06:21:40Z","updated_at":"2015-11-13T06:21:40Z","body":"thanx for your suggestion..i will try to debug."}}