S
S
sir_pounce2020-11-25 12:26:59
Vue.js
sir_pounce, 2020-11-25 12:26:59

How to make a vue modal window?

The idea is that the modal window component will lie in the app component and listen to the events of its opening and closing through the eventbus. At the same time, it will have a slot for the data that needs to be displayed in this window. And the idea is to pass not just templates to the slot, but components that themselves will process the data transferred to this window. The question is, is it possible to do this? If so, how? If not, what is the best way to implement a modal window so that it is one for the entire application, and not inserted into each component where it is needed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question