emit example vue
Example 1: how emit in input in vue
<input @change="$emit('modelInput' , inputValueModel)" >
Example 2: how to emit a function in vue
this.$emit('myEvent')
<input @change="$emit('modelInput' , inputValueModel)" >
this.$emit('myEvent')