M
M
marcussx2021-03-05 20:42:57
Vue.js
marcussx, 2021-03-05 20:42:57

How to make sure that when the state changes, the value does not change in the rest of the components created with v-for?

There is a component created via v-for. There is a state with a selected field. When the component's button is clicked, the selected element changes its value to the clicked element. How to make a check so that the value changes only the value of the element on the button of which you click.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question