I am new to VueJS and seeking advice on the most effective approach to use.
Within a parent component, I have multiple child components.
After creating the child components, each one has an event handler attached to it:
this.$parent.$on('save', this.save);
This allows us to call the save method of each child whenever we emit the following in the parent:
this.$emit('save', block);
The issue I am encountering is that every child listening to events from this parent reacts to this event. Is there a more efficient way to ensure only a specific child responds to the parent click event?