From df0e10510b6ed6e89f67e0fdfcde070cd19d706e Mon Sep 17 00:00:00 2001 From: Jack Neary Date: Wed, 4 Oct 2017 11:42:26 +0100 Subject: [PATCH] Fix: Use correct variable to construct item --- 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); } }