Answer the question
In order to leave comments, you need to log in
How to display an additional list in Vue.js when a certain item of an existing list in another component is clicked?
I want to display a list of tasks created by the user when clicking on a menu item created using v-for inside another cyclic list of groups, the list of tasks is displayed in another component. Items in all lists are added by the user. I tried to double nest arrays using the current iteration keys, it seems that the values are saved but crookedly, they are displayed only after clicking on another group and when you click on the corresponding menu item again, they are not displayed in the right component. Everything is too cumbersome, stupor. Can structurally change something? How can it be easier to make the list of added tasks tied to a specific menu item and displayed every time you click on it?
Here is the simplified code: https://jsfiddle.net/rokerok_22/vnvvpg9a/1/
Answer the question
In order to leave comments, you need to log in
Everything is too cumbersome, stupor.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question