Skip to content

Commit 3b57346

Browse files
Update README.md (#3606)
Use plural name for the items array in the intro code Co-authored-by: Armando Navarro <adnavarro@google.com>
1 parent 79185e7 commit 3b57346

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ interface Item {
4646
selector: 'app-root',
4747
template: `
4848
<ul>
49-
@for (item of (item$ | async); track item) {
49+
@for (item of (items$ | async); track item) {
5050
<li>
5151
{{ item.name }}
5252
</li>
@@ -58,7 +58,7 @@ interface Item {
5858
export class AppComponent {
5959
firestore = inject(Firestore);
6060
itemCollection = collection(this.firestore, 'items');
61-
item$ = collectionData<Item>(this.itemCollection);
61+
items$ = collectionData<Item>(this.itemCollection);
6262
}
6363
```
6464

0 commit comments

Comments
 (0)