1👍
✅
success
and close
functions should be placed inside the methods
field in order to be recognized by the template as methods :
export default {
name: "app",
components: {
OkoButton
},
methods:{
success: function() {
window.console.log("oko success");
},
close: function() {
window.console.log("oko closed");
}
}
};
Source:stackexchange.com