L
L
litash2018-06-22 17:13:21
Vue.js
litash, 2018-06-22 17:13:21

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

1 answer(s)
V
Vladimir Proskurin, 2018-06-22
@litash

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 question

Ask a Question

731 491 924 answers to any question