I have the following code:
{
data: function () {
return {
questions: [],
sendButtonDisable: false,
}
},
methods: {
postQuestionsContent: function () {
var that = this;
that.sendButtonDisable = true;
},
},
},
I need to change sendButtonDisable
to true when postQuestionsContent()
is called. I found only one way to do this; with var that = this;
.
Is there a better solution?