Answer the question
In order to leave comments, you need to log in
On the button to display the data of different arrays in the component?
What is the best way to organize? v-if or slot or even spread across different files because there are many arrays in one place?
Sandbox here: https://codepen.io/kirillz-the-styleful/pen/NZWOEd
Answer the question
In order to leave comments, you need to log in
Add a property - an array that will contain your "different arrays". Add property - index of displayed array. Add a computed property - a displayable array. Render elements based on rendered array data.
https://jsfiddle.net/w0vrxcyg/1/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question