I
I
Ilya Kochkin2020-04-13 16:27:19
JavaScript
Ilya Kochkin, 2020-04-13 16:27:19

How to control the states of each vue component?

Good afternoon, I'm interested in the question: I create 2 components with checkboxes, they have a boolean field isAddres:false field,
when you click on the checkbox, the input field for each component should be hidden separately - the question is why the skis do not roll?
here is the code

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-04-13
@mr_Koch

Vue but you are accessing the same ID at the generated HTML level.
UPD: if you do not understand, then click on the bottom checkbox, and then look at the code.
Laughs: you refer to the same ID, but you do it without respect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question