Skip to content

Support of $bind with nested key path  #404

Closed
@andrewspy

Description

@andrewspy

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions