Skip to content

Commit 2b0ce92

Browse files
authored
Update README.md (#3465)
Type cast collectionData as it was producing an error without it
1 parent bd18c61 commit 2b0ce92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class AppComponent {
5858

5959
constructor() {
6060
const itemCollection = collection(this.firestore, 'items');
61-
this.item$ = collectionData(itemCollection);
61+
this.item$ = collectionData(itemCollection) as Observable<Item[]>;
6262
}
6363
}
6464
```

0 commit comments

Comments
 (0)