Answer the question
In order to leave comments, you need to log in
How to apply v-if to only one instance of v-for?
I have a component in which, with the help of v-for, several blocks are displayed with titles and additional information.
On the block with additional info hangs v-if
On the wrapper of the block, a click handler that changes the boolean variable, depending on which the block with info is shown or hidden.
When I click on the block wrapper, all the elements created by the cycle are shown and hidden at once.
How can I make it show/hide only the clicked one?
https://codesandbox.io/s/blissful-https-zg4tg?file...
Answer the question
In order to leave comments, you need to log in
There are such options:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question