From 6a66c464424007976724212c982992c5bbf4e72e Mon Sep 17 00:00:00 2001 From: Jose E Date: Sat, 18 Nov 2023 18:04:15 -0700 Subject: [PATCH] Update README.md Type cast collectionData as it was producing an error without it --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index edab67c45..4912fb8c7 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ export class AppComponent { constructor() { const itemCollection = collection(this.firestore, 'items'); - this.item$ = collectionData(itemCollection); + this.item$ = collectionData(itemCollection) as Observable; } } ```