vuejs listen for emit from specific component code example Example: how to emit a function in vue this.$emit('myEvent')