L
L
litash2018-07-03 20:29:08
Vue.js
litash, 2018-07-03 20:29:08

How to show the same component but with different data when clicking on buttons in a Vue.js component?

Hello, there is a component in which the buttons, when clicking on the button, shows another component (blue), as in this component (blue) when clicking on the buttons in the (green component), pass the same blue component only with different data, for example, what would be in the list there were other list items and other content, in the example (some content). As I understand it, you can make 4 components and show them, but this is probably stupid. Help me make it smart :)
Here is an example:
https://codepen.io/litash/pen/qKvRQx

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2018-07-03
@litash

https://codepen.io/anon/pen/GGLNRp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question