{"action":"created","issue":{"url":"https://api.github.com/repos/begriffs/angular-paginate-anything/issues/73","labels_url":"https://api.github.com/repos/begriffs/angular-paginate-anything/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/begriffs/angular-paginate-anything/issues/73/comments","events_url":"https://api.github.com/repos/begriffs/angular-paginate-anything/issues/73/events","html_url":"https://github.com/begriffs/angular-paginate-anything/issues/73","id":84077958,"number":73,"title":"Need to operate the 'collection' in client before use it","user":{"login":"estvmachine","id":2062668,"avatar_url":"https://avatars.githubusercontent.com/u/2062668?v=3","gravatar_id":"","url":"https://api.github.com/users/estvmachine","html_url":"https://github.com/estvmachine","followers_url":"https://api.github.com/users/estvmachine/followers","following_url":"https://api.github.com/users/estvmachine/following{/other_user}","gists_url":"https://api.github.com/users/estvmachine/gists{/gist_id}","starred_url":"https://api.github.com/users/estvmachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estvmachine/subscriptions","organizations_url":"https://api.github.com/users/estvmachine/orgs","repos_url":"https://api.github.com/users/estvmachine/repos","events_url":"https://api.github.com/users/estvmachine/events{/privacy}","received_events_url":"https://api.github.com/users/estvmachine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T15:42:10Z","updated_at":"2015-06-02T16:26:49Z","closed_at":null,"body":"I have to send through server a **stringify response** because contains circular references, so in my angular client i need to parse the response. How i access the **'collection'** for parsing or for make other operations with him?. I'm using : 'transform-response', but something is wrong.\r\n\r\nI'm trying with something like this:\r\n\r\nasks.view.html\r\n```html\r\n\t<div class=\"col-1-1\">\r\n\t\t<table class=\"table row-border hover\">\r\n                       <thead>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th>id</th>\r\n\t\t\t\t\t<th>ask</th>\r\n\t\t\t\t</tr>\r\n\t\t\t</thead>\r\n\r\n                     <tbody>\r\n\t\t\t\t<tr ng-repeat=\"ask in asks\">\r\n\t\t\t\t\t<td ng-bind=\"ask.id\"></td>\r\n\t\t\t\t\t<td ng-bind=\"ask.question\"></td>\r\n\t\t\t         </tr>\r\n\t            </tbody>\r\n    </table>\r\n\t</div> \r\n\r\n\t<bgf-pagination\r\n        url=\"'http://localhost:3000/asks'\"\r\n\t\ttransform-response=\"convertResponse\"\r\n\t\tcollection=\"data\"\r\n\t\t>\r\n\t</bgf-pagination>\r\n```\r\n\r\nIn controller\r\n```javascript\r\n$scope.convertResponse= function(data){\r\n\t\t\tconsole.log(data);\r\n\t\t\t$scope.asks= JSON.parse(data);\r\n\t\t}\r\n```\r\n\r\nBut i got this error\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2062668/7940605/f60e7a44-091f-11e5-96ec-a3fdd89f7f9b.png)\r\n\r\nFinally also Its really desirable the object 'colllection' can be accessible in the $scope like someone ask in  #51.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/begriffs/angular-paginate-anything/issues/comments/108006429","html_url":"https://github.com/begriffs/angular-paginate-anything/issues/73#issuecomment-108006429","issue_url":"https://api.github.com/repos/begriffs/angular-paginate-anything/issues/73","id":108006429,"user":{"login":"estvmachine","id":2062668,"avatar_url":"https://avatars.githubusercontent.com/u/2062668?v=3","gravatar_id":"","url":"https://api.github.com/users/estvmachine","html_url":"https://github.com/estvmachine","followers_url":"https://api.github.com/users/estvmachine/followers","following_url":"https://api.github.com/users/estvmachine/following{/other_user}","gists_url":"https://api.github.com/users/estvmachine/gists{/gist_id}","starred_url":"https://api.github.com/users/estvmachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estvmachine/subscriptions","organizations_url":"https://api.github.com/users/estvmachine/orgs","repos_url":"https://api.github.com/users/estvmachine/repos","events_url":"https://api.github.com/users/estvmachine/events{/privacy}","received_events_url":"https://api.github.com/users/estvmachine/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T16:26:49Z","updated_at":"2015-06-02T16:26:49Z","body":"I do this and work:\r\n\r\n\r\n```html\r\n <bgf-pagination\r\n        url=\"'http://localhost:3000/asks'\"\r\n        transform-response=\"convertResponse\"\r\n        collection=\"ordenes\"\r\n        >\r\n    </bgf-pagination>\r\n```\r\n\r\nIn controller\r\n```javascipt\r\n\t$scope.convertResponse= function(data){\r\n\t\t\treturn JSON.parse(data.ordenes);\r\n          }\r\n```\r\n\r\nHowever I must insist on the question of the 'collection' can be in the '$scope'"}}