{"action":"opened","issue":{"url":"https://api.github.com/repos/KallynGowdy/ng2-firebase/issues/15","repository_url":"https://api.github.com/repos/KallynGowdy/ng2-firebase","labels_url":"https://api.github.com/repos/KallynGowdy/ng2-firebase/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/KallynGowdy/ng2-firebase/issues/15/comments","events_url":"https://api.github.com/repos/KallynGowdy/ng2-firebase/issues/15/events","html_url":"https://github.com/KallynGowdy/ng2-firebase/issues/15","id":146971119,"number":15,"title":"[Req] implement current node key getter","user":{"login":"eisenmaxx","id":4738368,"avatar_url":"https://avatars.githubusercontent.com/u/4738368?v=3","gravatar_id":"","url":"https://api.github.com/users/eisenmaxx","html_url":"https://github.com/eisenmaxx","followers_url":"https://api.github.com/users/eisenmaxx/followers","following_url":"https://api.github.com/users/eisenmaxx/following{/other_user}","gists_url":"https://api.github.com/users/eisenmaxx/gists{/gist_id}","starred_url":"https://api.github.com/users/eisenmaxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eisenmaxx/subscriptions","organizations_url":"https://api.github.com/users/eisenmaxx/orgs","repos_url":"https://api.github.com/users/eisenmaxx/repos","events_url":"https://api.github.com/users/eisenmaxx/events{/privacy}","received_events_url":"https://api.github.com/users/eisenmaxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T16:09:51Z","updated_at":"2016-04-08T16:09:51Z","closed_at":null,"body":"I recently came along to a problem, which case i needed the current child's key.\r\nCoz, the docs is not full i dig into to code and realized that its much easier if i extend it with the following:\r\n```\r\nget rawPair():Observable<any> {\r\n        return this.valueRaw.map((data) => {\r\n            return {\r\n                key:data[0].key(),\r\n                value:data[0].val()\r\n            }\r\n        });\r\n }\r\n```\r\n\r\nSo its not a good way to handle this problem, but it would be nice to have a way to access the key and not just the value.\r\n\r\nregards, david\r\n"}}