Closed
Description
I intend to $bind
a collection of documents under docs
by id
. It seems to work, and wonder if it is supported officially.
const documents = db.collection('documents')
export default {
props: ['documentId'],
data: () => ({ docs: { }}),
},
watch: {
documentId(id) {
// $bind automatically unbinds the previously bound property
this.$bind(`docs.${id}`, documents.doc(id))
},
},
}
Metadata
Metadata
Assignees
Labels
No labels