angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Minor error in collections documentation

Open xeeeveee opened this issue 9 years ago • 0 comments

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

xeeeveee avatar Oct 04 '17 10:10 xeeeveee