can emit be used on different components vue code example Example: how to emit a function in vue this.$emit('myEvent')