Answer the question
In order to leave comments, you need to log in
How to organize component cloning?
Good morning.
In general, here is a code example , I would like to understand how, when cloning a component, create a separate instance of this component with its own data set, which could later be accessed and reactively changed the information inside it, while not affecting the parent?
And in general, how can you reactively change the data inside the global components already connected to vue, without transferring the dataset to the vue instance itself?
Thank you.
Answer the question
In order to leave comments, you need to log in
After all, you don’t clone them
from 3 different components, and the 4th duplicated
in v-for, you can add index and treat the components as an array, and the desired component will be located just through this index
, there is also a key . Can you use it somehow?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question