{"action":"created","issue":{"url":"https://api.github.com/repos/oferh/ng2-completer/issues/107","repository_url":"https://api.github.com/repos/oferh/ng2-completer","labels_url":"https://api.github.com/repos/oferh/ng2-completer/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/oferh/ng2-completer/issues/107/comments","events_url":"https://api.github.com/repos/oferh/ng2-completer/issues/107/events","html_url":"https://github.com/oferh/ng2-completer/issues/107","id":196617200,"number":107,"title":"How to read data from localhost?","user":{"login":"Seeker93","id":5177086,"avatar_url":"https://avatars.githubusercontent.com/u/5177086?v=3","gravatar_id":"","url":"https://api.github.com/users/Seeker93","html_url":"https://github.com/Seeker93","followers_url":"https://api.github.com/users/Seeker93/followers","following_url":"https://api.github.com/users/Seeker93/following{/other_user}","gists_url":"https://api.github.com/users/Seeker93/gists{/gist_id}","starred_url":"https://api.github.com/users/Seeker93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seeker93/subscriptions","organizations_url":"https://api.github.com/users/Seeker93/orgs","repos_url":"https://api.github.com/users/Seeker93/repos","events_url":"https://api.github.com/users/Seeker93/events{/privacy}","received_events_url":"https://api.github.com/users/Seeker93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-20T08:52:33Z","updated_at":"2016-12-20T09:45:15Z","closed_at":null,"body":"Hi\r\n\r\nI have successfully implemented the autocomplete bar using the example data, but I am struggling with making it work using a localhost url. \r\n\r\nI have json being exposed on localhost:8080 in the following form: \r\n\r\n```\r\n[\r\n{\r\nname: \"John Smith\",\r\ndisplayName: \"John\",\r\nlastName: Smith,\r\nfirstName: \"John\",\r\nmail: \"jsmith@example.com\",\r\ndepartment: null,\r\ntelephone: null,\r\nextension: null\r\n},\r\n\r\n```\r\n\r\nI have tried updating the dataservice in the following way \r\n\r\n`this.dataService = completerService.local('http://localhost:8080', 'name', 'name');`\r\n\r\nBut the searchbar returns no results. \r\n\r\nAny help would be appreciated.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/oferh/ng2-completer/issues/comments/268199415","html_url":"https://github.com/oferh/ng2-completer/issues/107#issuecomment-268199415","issue_url":"https://api.github.com/repos/oferh/ng2-completer/issues/107","id":268199415,"user":{"login":"oferh","id":493344,"avatar_url":"https://avatars.githubusercontent.com/u/493344?v=3","gravatar_id":"","url":"https://api.github.com/users/oferh","html_url":"https://github.com/oferh","followers_url":"https://api.github.com/users/oferh/followers","following_url":"https://api.github.com/users/oferh/following{/other_user}","gists_url":"https://api.github.com/users/oferh/gists{/gist_id}","starred_url":"https://api.github.com/users/oferh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oferh/subscriptions","organizations_url":"https://api.github.com/users/oferh/orgs","repos_url":"https://api.github.com/users/oferh/repos","events_url":"https://api.github.com/users/oferh/events{/privacy}","received_events_url":"https://api.github.com/users/oferh/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T09:45:15Z","updated_at":"2016-12-20T09:45:15Z","body":"You have [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) issue that is not related to the component. either proxy requests from your web server to the app server or add 'Access-Control-Allow-Origin' header to your web server."}}
{"actor":{"display_login":"oferh"}}