Jun 27, 2023
0
Level 1
make a variable false and wait
Hello, I have a button that activates a variable and this variable activates a component, the component is declared like this:
<Notas v-if="notasdialog"></Notas>
The button I have does the following:
async notas(){
this.notasdialog = await false;
this.notasdialog =true;
},
When running the function, the component opens perfectly, but if I close it and run the function again as the notasdialog variable is already true, the component no longer opens.
How can I make pressing the button always make the variable false so that I can then make it true and open the component?
greetings
Please or to participate in this conversation.