constructor(private afs: AngularFirestore) {
this.itemDoc = afs.doc<Item>('items/id');
this.item = this.itemDoc.valueChanges();
}
Now, this.item
has the value of a particular document except id
of the document.
I want id
and document data.
(Or)
If the snapshotChanges()
is the way, how will I use this?
Thank you..!