I am using vuex and vuejs 2 together.
vuex
vuejs 2
I am new to vuex, I want to watch a store variable change.
store
I want t
It's as simple as:
watch: { '$store.state.drawer': function() { console.log(this.$store.state.drawer) } }