I want to bind my data to the below HTML table:
No.<
相关标签:
-
2021-01-21 11:51
To get the doc.id you have to use snapshotChanges() in your code like this:
db.collection("Accounts").snapshotChanges().map(actions => {
return actions.map(a => {
const data = a.payload.doc.data();
const id = a.payload.doc.id;
return { id, ...data };
});
});
|