Skip to content

Commit 2ff8d1d

Browse files
adnan333bdjamesdaniels
authored andcommitted
docs(rtdb): edit doc for sample code may cause confusion (#1260)
1 parent 8048245 commit 2ff8d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/version-5-upgrade.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ constructor(afDb: AngularFireDatabase) {
4141
### 5.0
4242
```ts
4343
constructor(afDb: AngularFireDatabase) {
44-
afDb.object('items').snapshotChanges().map(action => {
44+
afDb.object('items/1').snapshotChanges().map(action => {
4545
const $key = action.payload.key;
4646
const data = { $key, ...action.payload.val() };
4747
return data;

0 commit comments

Comments
 (0)