I have a component with checkbox input:
<template>
<input id='one' type='checkbox' v-on:change.native="$emit('change')" />
</template>
I am using this component in another component:
<template>
....
<Checkbox v-on:change="change" />
....
</template>
<script>
import Checkbox from './components/Checkbox.vue'
export default {
components: {
Checkbox
},
methods: {
change: function (e) {
console.log(e);
},
}
</script>
What I want is to attach parent component method, which must point to children component event.
The problem is that this change event doesn't trigger when checkbox is changed.