Skip to content

Commit

Permalink
docs(afs): Use correct variable to construct item (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
xeeeveee authored and jamesdaniels committed Oct 4, 2017
1 parent 2113385 commit bb43189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/firestore/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit bb43189

Please sign in to comment.