Answer the question
In order to leave comments, you need to log in
How to call vue method using onClick?
Hello, can you please tell me how can I call the foo() method from
methods: {
foo() {
alert("sdf");
}
}
but using onClick (@click is not suitable as you need to cancel the default action before it is executed)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question