[Vuejs]-Vuex: binding dynamically to a property of the state

0👍

You need to instantiate the Vuex store via new Vuex.Store({...}) (I would expect your code to throw an error, but apparently not.)

Also, you don’t need the Vue.use(Vuex) line.

Here’s a working Codepen.

Leave a comment