2👍
Each Vue instance (root and children) is an independent event hub.
You $emit events on an instance and you can subscribe to event notifications with $on on the same instance.
You can use this.$root.$on()
and this.$root.$emit()
to use the root instance as an event bus and achieve your purpose.
However, it’s not very clear to me what separation of concerns you are trying to get, so I’m not ready to give better advice.
👤tato
Source:stackexchange.com