I am trying to use a method with a checkbox and it's not firing in VueJS. I have included snippets from the template section and methods section of my component. The component and everything else in it load just fine without any console errors, but I can't get this method to fire when I click the checkbox. What am I doing wrong?
FROM template:
<input type="checkbox" v-on:change="myMethod(this)" />
FROM methods:
myMethod: function (chck) {
if (chck.checked == true) {
console.log("true");
} else if (chck.checked == false) {
console.log("false");
}
},