{"action":"created","issue":{"url":"https://api.github.com/repos/ocombe/ng2-translate/issues/80","repository_url":"https://api.github.com/repos/ocombe/ng2-translate","labels_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/80/comments","events_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/80/events","html_url":"https://github.com/ocombe/ng2-translate/issues/80","id":145216663,"number":80,"title":"Fail to get translate value in app.js","user":{"login":"shmu80","id":17746530,"avatar_url":"https://avatars.githubusercontent.com/u/17746530?v=3","gravatar_id":"","url":"https://api.github.com/users/shmu80","html_url":"https://github.com/shmu80","followers_url":"https://api.github.com/users/shmu80/followers","following_url":"https://api.github.com/users/shmu80/following{/other_user}","gists_url":"https://api.github.com/users/shmu80/gists{/gist_id}","starred_url":"https://api.github.com/users/shmu80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmu80/subscriptions","organizations_url":"https://api.github.com/users/shmu80/orgs","repos_url":"https://api.github.com/users/shmu80/repos","events_url":"https://api.github.com/users/shmu80/events{/privacy}","received_events_url":"https://api.github.com/users/shmu80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T15:54:41Z","updated_at":"2016-04-01T17:17:02Z","closed_at":null,"body":"Hi, \r\nI am using ionic 2 and import the ng2-translate, but I failed to retrieve the translate value in app.js file. The value has no issue to display in HTML.\r\nCan you please advise?\r\n\r\nen.json\r\n`\"title\" : \"Test Title\",`\r\n\r\napp.js\r\n\r\n  ```\r\n  this.translate.get(\"title\").subscribe(this.translatedValue);\r\n    console.log(\"translates : \" + this.translatedValue);\r\n```\r\n\r\nConsole log\r\n`log translates : undefined`"},"comment":{"url":"https://api.github.com/repos/ocombe/ng2-translate/issues/comments/204476051","html_url":"https://github.com/ocombe/ng2-translate/issues/80#issuecomment-204476051","issue_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/80","id":204476051,"user":{"login":"ocombe","id":265378,"avatar_url":"https://avatars.githubusercontent.com/u/265378?v=3","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T17:17:02Z","updated_at":"2016-04-01T17:17:02Z","body":"Hmm I think that this should work better:\r\n```ts\r\n this.translate.get(\"title\").subscribe(res => {\r\n    this.translatedValue = res;\r\n    console.log(\"translates : \" + res);\r\n});\r\n```"}}