0👍
✅
Try this – you don’t need to add the function name just before the ()’s
onConfirm: function () {
console.log(this.value);
},
onCancel: function () {
console.log(this.value);
}
Alternatively, you could use an even simpler syntax
onConfirm () {
console.log(this.value);
},
onCancel () {
console.log(this.value);
}
Source:stackexchange.com