[Vuejs]-Vue.js – How to create child component's DOM element outside of it's parent component's DOM element

-1👍

Child:

<template>
    <div>
         I'm CHILD
         <slot></slot>
    </div>
</template>

Parent:

<template>
    <div>
        <Child>
            <span>I'm parent</span>
        </Child>
    </div>
</template>

Leave a comment