what is $event in emit vuejs code example Example: how to emit a function in vue this.$emit('myEvent')