[Vuejs]-Update element in static vue component when sibling component changes

0👍

Found a work-around by using this.$root.$emit('event', data) in one component and picking up the event with this.$root.$on('event', (data) => {}).

This seemed to update the header component without any problems.

0👍

For now you can use Vuex to store your state.
for more info: Vuex

Leave a comment