Answer the question
In order to leave comments, you need to log in
Why doesn't Vue see the variable?
Good afternoon. I can’t understand why I can’t access the variable that is in data: {}
data: function() {
return {
default: {
...
hasSelected: false;
...
},
dirty: {
...
hasSelected: false;
...
},
}
}
Menu.dirty.hasSelected = Boolean(hasSelected);
...
<div v-if="this.dirty.hasSelected">Lorem</div>
...
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