[Vuejs]-How do I trigger a click event using eventBus on vue?

0👍

You should avoid using the event bus in Vue as it is stated in the official documentation about dispatch and broadcast

It’s better to use the event system for communication between child and parent. The child emits an event with this.$emit('event-name', payload) and the parent listens for events from its child with @event-name="myMethodInParent". This is just the good practice. The other good option is the use Vuex and to mutate state directly from child components.

Vue events docs
Vuex

Leave a comment