K
K
Konstantin B.2019-11-04 11:41:13
Vue.js
Konstantin B., 2019-11-04 11:41:13

How to make such components correctly and what are they called?

Hello. I'm interested in how to develop such a component, when, for example, I declare it in one place, but it is displayed in another.
For example, I want to make a modal window for each Item, so that it is then displayed not in the body of the Item itself, but, for example, somewhere before

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-11-04
@Kostik_1993

What are the names - yes, no idea, ordinary components:
You create instances not through the template / render function of other components, but manually call the constructor and add the root element where you need it:
Deletion - also manually, call the $destroy method and remove the root element from the DOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question