javascript - Make a store without using Vuex -


i trying understand how use vuex, since i'm pretty new vuejs world, didn't understand well.

so i'm looking alternative.

i want share data between 2 components, let's this.

i have view file (component contain product) , cart component.so want build add cart feature, , that's why need kind of store.

any idea, advice ?

thanks.

just use object.

from official docs:

var sourceoftruth = {} var vma = new vue({   data: sourceoftruth }) var vmb = new vue({   data: sourceoftruth }) 

https://vuejs.org/guide/application.html#state-management


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -