Passing events between sibling components
Hi,
While the docs are pretty clear on passing data with events between parent and child components I am unsure on how to pass it between "sibling" components.
Currently I am using $dispatch on the on child. I the dispatched event in the parent and then I $broadcast the event again and catch it by the other child... It feels like there should be a better way?
In this case you should probably use an event bus that is outside of the component tree. You don't always have to rely on the propagation.
@yyx990803 The "event bus" you are referring to is VueX?
@leapon https://github.com/vuejs/vue/issues/2873 seach for "Upgrade Tips"