is it possible to emit an event from method in vue code example Example: how to emit a function in vue this.$emit('myEvent')