Event Bus

Download vue.js eBook


Event buses are a useful way of communicating between components which are not directly related, i.e. Have no parent-child relationship.

It is just an empty vue instance, which can be used to $emit events or listen $on the said events.


  1. export default new Vue()


Use vuex if your application has a lot of components requiring the data of each other.

Related Examples


21 Contributors: 1
Tuesday, March 21, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook