Skip to content

Commit 2cd22e0

Browse files
orahul1jamesdaniels
authored andcommitted
docs(migration): problem with variable 'key' in migration guide (#1218)
1 parent d3045ce commit 2cd22e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/version-5-upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ constructor(afDb: AngularFireDatabase) {
4343
constructor(afDb: AngularFireDatabase) {
4444
afDb.object('items').snapshotChanges().map(action => {
4545
const $key = action.payload.key;
46-
const data = { key, ...action.payload.val() };
46+
const data = { $key, ...action.payload.val() };
4747
return data;
4848
}).subscribe(item => console.log(item.key));
4949
}

0 commit comments

Comments
 (0)