Answer the question
In order to leave comments, you need to log in
How to pass this parameter to vue?
.... @change="clog(var)"
...
data: (){
return {var: 'text'}
}
methods: {clog(var){
console.log(this.var)
}}
...
Answer the question
In order to leave comments, you need to log in
syntax like this[var] Vue does not understand in this case.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question