Answer the question
In order to leave comments, you need to log in
How to show a block on click in the list?
Is it possible to switch blocks by clicking on the list using v-for in the list and storing the name in an array? Without the use of components using v-show.
Here is an example:
https://codepen.io/litash/pen/rKvZZY
It is necessary that when you click in the list on the right, a certain block is shown. I'm showing everything at once :D
Answer the question
In order to leave comments, you need to log in
https://codepen.io/anon/pen/pKVYoQ
If you write data to an array, it will be even easier and more convenient.
https://codepen.io/anon/pen/vrjPOg
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question