[Vuejs]-How to communicate between components within a certain component?

0👍

Since you’re concerned (and with good reason) about the globalness of a global event bus, the solution is a localized event bus. Create a data item in the parent:

panelBus: new Vue()

and pass it to each of the children as a prop. Now they have a private communcation channel for just the two of them.

Leave a comment