payload emit event used as this. code example Example: how to emit a function in vue this.$emit('myEvent')