[Vuejs]-How to best tackle sharing of state between components in same view

1👍

Vuex is your answer.
https://vuex.vuejs.org/en/intro.html

This is the solution for the sharing of states.

You will create the store, connect your states with store and use actions/mutations to work with them.

It will give you great foundation for state sharing which, if you will need to, you will easily scale up.

Good luck!

2👍

If you think that Vuex is overkill, then check my answer here – pretty same topic

VueJS access child component's data from parent

Leave a comment