cklmercer / vue-stash

Easily share reactive data between your Vue components.
MIT License
403 stars 29 forks source link

Hoist to global scope and rename store? #29

Open AJB99 opened 5 years ago

AJB99 commented 5 years ago

Hi,

I'd like to be able to use vue-stash in a way that I can simply type $db to access my data instead of this.$store.

For example, if this.$store.test were to have a value of 'testing' then I could simply write console.log($db.test) and get the word 'testing' output into my console.

Is this possible while retaining reactivity of the data?