Hello i have some code from vuetify (https://vuetifyjs.com/en/components/cards#custom-actions)
so i edited code like this:
You've got several options.
The example is a bit artificial as it uses If storing it in the objects isn't an option then you could (somewhat painfully) maintain a separate array for the show values, using the index to tie the two arrays together. But probably the best solution is to extract a new component. Generally when you have a So: would become: and you'd move all the rest of the template into show
value within each object.
v-for
with some sort of editable state it is worth considering extracting a new component as it usually ends up being the simplest solution. In this case those components could each hold their own show
value.my-new-component
.