Sometimes two components also need to communicate (non-parent-child relationship). Of course Vue2.0 provides Vuex, but in simple scenarios, you can use an empty Vue instance as the central event bus.
Reprint link: http://www.cnblogs.com/fanlinqiang/p/7756566.html