Answer the question
In order to leave comments, you need to log in
How to get the global context inside v-on = "..."?
Here's roughly what I need:
@click = "myVueMeth1(); myVueMeth2(); document.forms[0].submit()"
onclick = "vm.myVueMeth1(); vm.myVueMeth2(); document.forms[0].submit()"
Answer the question
In order to leave comments, you need to log in
Make a separate method:
methods: {
onClick() {
this.myVueMeth1();
this.myVueMeth2();
document.forms[0].submit();
},
},
computed: {
document() {
return document;
},
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question