From bb43189c9769cea4b99c7cded4015f063c923a04 Mon Sep 17 00:00:00 2001 From: Jack Neary Date: Wed, 4 Oct 2017 17:01:52 +0100 Subject: [PATCH] docs(afs): Use correct variable to construct item (#1201) --- docs/firestore/collections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/firestore/collections.md b/docs/firestore/collections.md index 9307f0229..7203d169d 100644 --- a/docs/firestore/collections.md +++ b/docs/firestore/collections.md @@ -116,7 +116,7 @@ export class AppComponent { addItem(name: string) { // Persist a document id const id = this.afs.createId(); - const item: Item = { id, item }; + const item: Item = { id, name }; this.itemsCollection.add(item); } }