{"action":"created","issue":{"url":"https://api.github.com/repos/lifegadget/ui-navigator-service/issues/6","repository_url":"https://api.github.com/repos/lifegadget/ui-navigator-service","labels_url":"https://api.github.com/repos/lifegadget/ui-navigator-service/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/lifegadget/ui-navigator-service/issues/6/comments","events_url":"https://api.github.com/repos/lifegadget/ui-navigator-service/issues/6/events","html_url":"https://github.com/lifegadget/ui-navigator-service/issues/6","id":142788296,"number":6,"title":"Broken navigator injection in 0.2.7","user":{"login":"lancedikson","id":1955931,"avatar_url":"https://avatars.githubusercontent.com/u/1955931?v=3","gravatar_id":"","url":"https://api.github.com/users/lancedikson","html_url":"https://github.com/lancedikson","followers_url":"https://api.github.com/users/lancedikson/followers","following_url":"https://api.github.com/users/lancedikson/following{/other_user}","gists_url":"https://api.github.com/users/lancedikson/gists{/gist_id}","starred_url":"https://api.github.com/users/lancedikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lancedikson/subscriptions","organizations_url":"https://api.github.com/users/lancedikson/orgs","repos_url":"https://api.github.com/users/lancedikson/repos","events_url":"https://api.github.com/users/lancedikson/events{/privacy}","received_events_url":"https://api.github.com/users/lancedikson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-22T21:37:49Z","updated_at":"2016-04-03T14:32:06Z","closed_at":null,"body":"Hi! I run into weird issue after update from 0.1.2 to 0.2.7. If I use the service in components like this:\r\n\r\n```\r\nnavigator: Ember.inject.service(),\r\n```\r\nthe code below doesn't work. \r\n```\r\nthis.get('navigator.currentRouteName').split('.')[0];\r\n```\r\nIt throws exception to me: `Uncaught TypeError: Cannot read property 'split' of undefined`. But when I use service injection method via `environment.js` to the component's factory it looks good. Any ideas why it goes like this?"},"comment":{"url":"https://api.github.com/repos/lifegadget/ui-navigator-service/issues/comments/204986871","html_url":"https://github.com/lifegadget/ui-navigator-service/issues/6#issuecomment-204986871","issue_url":"https://api.github.com/repos/lifegadget/ui-navigator-service/issues/6","id":204986871,"user":{"login":"lancedikson","id":1955931,"avatar_url":"https://avatars.githubusercontent.com/u/1955931?v=3","gravatar_id":"","url":"https://api.github.com/users/lancedikson","html_url":"https://github.com/lancedikson","followers_url":"https://api.github.com/users/lancedikson/followers","following_url":"https://api.github.com/users/lancedikson/following{/other_user}","gists_url":"https://api.github.com/users/lancedikson/gists{/gist_id}","starred_url":"https://api.github.com/users/lancedikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lancedikson/subscriptions","organizations_url":"https://api.github.com/users/lancedikson/orgs","repos_url":"https://api.github.com/users/lancedikson/repos","events_url":"https://api.github.com/users/lancedikson/events{/privacy}","received_events_url":"https://api.github.com/users/lancedikson/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T14:32:06Z","updated_at":"2016-04-03T14:32:06Z","body":"@ksnyde, is there some catches by yourself? Can I help you somehow?"}}