0👍
Use vuex if you prefer a global state-object. It’s properties can be mapped to each instance and component https://github.com/vuejs/vuex
If you prefer an event based approach use an event bus https://alligator.io/vuejs/global-event-bus/
It is all well described at multiple positions in the official vuejs documentation.
- [Vuejs]-VueX state one step behind with dynamic routes (nuxt)
- [Vuejs]-Vue.js: load content into DOM depending on file extension
Source:stackexchange.com