{"action":"closed","issue":{"url":"https://api.github.com/repos/oferh/ng2-completer/issues/37","repository_url":"https://api.github.com/repos/oferh/ng2-completer","labels_url":"https://api.github.com/repos/oferh/ng2-completer/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/oferh/ng2-completer/issues/37/comments","events_url":"https://api.github.com/repos/oferh/ng2-completer/issues/37/events","html_url":"https://github.com/oferh/ng2-completer/issues/37","id":176115482,"number":37,"title":"Async remote service","user":{"login":"Cayan","id":1619617,"avatar_url":"https://avatars.githubusercontent.com/u/1619617?v=3","gravatar_id":"","url":"https://api.github.com/users/Cayan","html_url":"https://github.com/Cayan","followers_url":"https://api.github.com/users/Cayan/followers","following_url":"https://api.github.com/users/Cayan/following{/other_user}","gists_url":"https://api.github.com/users/Cayan/gists{/gist_id}","starred_url":"https://api.github.com/users/Cayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cayan/subscriptions","organizations_url":"https://api.github.com/users/Cayan/orgs","repos_url":"https://api.github.com/users/Cayan/repos","events_url":"https://api.github.com/users/Cayan/events{/privacy}","received_events_url":"https://api.github.com/users/Cayan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oferh/ng2-completer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-09T21:27:48Z","updated_at":"2016-10-09T10:00:57Z","closed_at":"2016-10-09T10:00:57Z","body":"I'd like to know your opinion regarding the the remote service.\r\nI believe an async data service would be a better approach than a remote one.\r\nThe implementation to fetch and handle the data, probably, would be already done.\r\n\r\nIn my case, I had to come up with the solution:\r\n\r\n\r\n    this.dataService = this.completerService.local(this.searchData, 'name', 'name');\r\n\r\n    this.userFactory.loadAll().subscribe((data) => this.searchData.push(...data));\r\n"}}
{"actor":{"display_login":"oferh"}}