store as vue instance prototype
joshua1 opened this issue · 1 comments
joshua1 commented
I want to ask if this will work if i added a new instance of my store as a vue instance prototype object
Vue.prototype.$todoStore=new TodoViewModel()
And use in all my components as this.$todoStore
as opposed to creating a new instance of the store in each component.
kuitos commented
yes, it could