angularfire
angularfire copied to clipboard
Minor error in collections documentation
addItem(name: string) {
// Persist a document id
const id = this.afs.createId();
const item: Item = { id, item};
this.itemsCollection.add(item);
}
const item is trying to use it's self to construct a new Item, clearly meant to be passed name