For example, there is Header component and you import it in layout/main.vue.
Then, you created a method which is like this.$emit('fromHeader', { //somevalue }
in Header component.
Here is my question. You have pages/index.vue and you use main.vue as layout. Is it possible to listen fromHeader
event from the Header component in the pages/index.vue?
I've already tried but it seems we can't. If so, what means do you implement if you want to listen to event from the component in the layout?
I'm wondering I should just import Header components in pages/index.vue and do not use layout to do this.