re: Sharing Data Between Components in Vue.js VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Nice writeup Alex, thanks for sharing. I have forked your example and have made it work with a Global EventBus using EventBus.$emit and EventBus.$...
 

Hey George! Your fork looks great, thanks for providing this.

I did look into using EventBus.$emit for the example, but I was trying to keep the components as modular as possible. While creating the file event-bus.js is not a huge lift, it is an additional item the component is dependent on.

I think your solution is 100% acceptable.

code of conduct - report abuse