E
E
Eka5552017-04-11 09:35:51
Vue.js
Eka555, 2017-04-11 09:35:51

How to merge child components?

Hello.
There are 3 components. App , Modal , Form
How to pass Form inside "App" in Modal?
To be like this:

<template>
   <modal v-if="show">
       <form><form>
   </modal>
</template>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2017-04-11
@Eka555

make slot in modal
vuejs.org/v2/guide/components.html#Content-Distrib...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question