A
A
Aligatro2017-10-09 07:26:40
Vue.js
Aligatro, 2017-10-09 07:26:40

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

1 answer(s)
A
Artem0071, 2017-10-09
@Artem0071

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 question

Ask a Question

731 491 924 answers to any question