We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3045ce commit 2cd22e0Copy full SHA for 2cd22e0
docs/version-5-upgrade.md
@@ -43,7 +43,7 @@ constructor(afDb: AngularFireDatabase) {
43
constructor(afDb: AngularFireDatabase) {
44
afDb.object('items').snapshotChanges().map(action => {
45
const $key = action.payload.key;
46
- const data = { key, ...action.payload.val() };
+ const data = { $key, ...action.payload.val() };
47
return data;
48
}).subscribe(item => console.log(item.key));
49
}
0 commit comments