I recently created a custom checkmark that I'm using.
Vue.component('checkle', {
props: ['crisis'],
template: '<input type="checkbox" class="form-check-input" />',
mounted: function() {
var vm = this
$(this.$el).on('change', function() {
vm.$emit('change')
})
}
})
<checkle crisis="crisisvalue"
v-model="Model"
@change="changeLEC()" :disabled="!SomeValue">
</checkle>
In my Vue App, I have defined @change
, but I am unsure how to access the crisis
prop within my app. Does anyone know if there is a way to accomplish this?