Skip to content

Commit 1434692

Browse files
bob-leejamesdaniels
authored andcommitted
docs(rtdb): use payload not snapshot (#1238)
1 parent 9039fc4 commit 1434692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rtdb/objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ AngularFire unwraps the Firebase DataSnapshot by default, but you can get the da
173173
this.itemRef = db.object('item');
174174
this.itemRef.snapshotChanges().subscribe(action => {
175175
console.log(action.type);
176-
console.log(action.snapshot.key)
177-
console.log(action.snapshot.val())
176+
console.log(action.key)
177+
console.log(action.payload.val())
178178
});
179179
```
180180

0 commit comments

Comments
 (0)