{"comment":{"url":"https://api.github.com/repos/Rise-Vision/common-header/comments/10348776","html_url":"https://github.com/Rise-Vision/common-header/commit/1308c20346a7938f40dba4e9346bf2233a2b302e#commitcomment-10348776","id":10348776,"user":{"login":"olegrise","id":6841220,"avatar_url":"https://avatars.githubusercontent.com/u/6841220?v=3","gravatar_id":"","url":"https://api.github.com/users/olegrise","html_url":"https://github.com/olegrise","followers_url":"https://api.github.com/users/olegrise/followers","following_url":"https://api.github.com/users/olegrise/following{/other_user}","gists_url":"https://api.github.com/users/olegrise/gists{/gist_id}","starred_url":"https://api.github.com/users/olegrise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegrise/subscriptions","organizations_url":"https://api.github.com/users/olegrise/orgs","repos_url":"https://api.github.com/users/olegrise/repos","events_url":"https://api.github.com/users/olegrise/events{/privacy}","received_events_url":"https://api.github.com/users/olegrise/received_events","type":"User","site_admin":false},"position":69,"line":69,"path":"src/js/svc-currency.js","commit_id":"1308c20346a7938f40dba4e9346bf2233a2b302e","created_at":"2015-03-23T16:20:46Z","updated_at":"2015-03-23T16:20:46Z","body":"@alex-deaconu you are right, it works, however since I don't understand why and how it works I don't feel confident using your suggestion. I also noticed that if I do `storeAPI.currency.list().then(function (resp) {` then `resp` is wrapped in extra object and that actual response is in the `resp.result`. \r\nAnyway, I agree that it's not true AngularJS approach to use functions with callbacks, but in this particular case `request.execute()` is wrapped into `currencyService()`. I can create a separate wrapper around `storeAPI.currency.list` to make it even more Angular, but I think it will be too much since it's used in one place only. Makes sense?"}}