⚡ Using custom emitted events in VueJS
I recommend to read this page, but on short:
// do this in your child component (f.e. named mycomponent) this.$emit('myevent') // and this in the parent component <mycomponent @myevent="someOtherFunction" />
Typically I catch emit events with the $on(...) function, but it's not necessary. You can catch your custom-event as well as a click event on your component in the html.
I am a software developer who spends most of his spare time working on open source projects. I also like taking pictures and playing table football.