Answer the question
In order to leave comments, you need to log in
How to pass the value of one component to another?
Good afternoon!
Sandbox #1:
There are 2 components here: a general list and a selected component (modal type). Opened by clicking on the arrows.
By clicking on the arrow, component No. 2 opens, into which information from component No. 1 is transferred.
Now the problems:
I need to add a class to the picture on click on this arrow or picture fullImage: false,
. Added to component number 1, everything works.
@click="fullImage = !fullImage, $emit('select', f)" :class="{ fullImage }"
OK. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question