I am using a v-for loop to select dialog boxes that I want to open.
<v-card @click="page.model = true">
In this code, page.model is being used as the v-model for a v-dialog component.
data() {
return {
dialog1: false,
dialog2: false,
pages: [
{
id: "1",
model: "dialog1",
},
{
id: "2",
model: "dialog2",
},
],
};
},
I'm wondering why @click="page.model = true" does not work, but @click=dialog1 = true " does? I also tried :@click="page.model = true" and @click="${page.model}
= true"
Thank you in advance