Currently, I am attempting to access a method within my watch function with two parameters. Here is the code snippet for the method:
onBoolianChange(value, willChange) {
willChange = (value === false) ? true : false;
},
watch: {
"edit_purchase.switch": function(val) {
this.onBoolianChange (val, this.show_code)
console.log(this.show_code)
},
}
However, when I log this.show_code
in my watcher function, it does not seem to change. Any thoughts on what might be causing this issue?