I would like to emit an event from App.vue which is a main component to another component.
EventBus.$emit from App.vue, EventBus.$on on child/another component is not working.
Since there is no child relation directly between these, I cannot use @custom-event="" either
How can I throw an event from App.vue to another component?
That's what I do. It is working all of the other components. Here my components' folder structure
-src
-pages
-main-page
-MainPage.vue $on
-event
-constant
-store
-router
App.vue --> $emit
main.js
Since there is no child relation directly between thesedoesn't make sense since EventBus works independently, you just need to make sure it imports from the right source.