Answer the question
In order to leave comments, you need to log in
How to programmatically create a new component in vue3 composition api?
You need to write a component in which you can add the same
Parent.vue component:
<template>
<Editor :data="data" />
</template>
<template>
<div class="editor">
I'm editor {{ data }}
// сюда надо добавить <Editor /> при нажатии на кнопку и передать данные
</div>
<button @click="addNewEditor"></button>
</template>
<script setup>
const addNewEditor = () => ???
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question