Last active
May 10, 2024 08:40
-
-
Save Kcko/01eaba5a56b7e65a032ffe575085c75c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>test</h1> | |
<component :is="dynamicComponent" /> | |
</template> | |
<script setup> | |
import { computed} from 'vue' | |
const dynamicComponent = computed(() => { | |
let template = ` | |
<h3>Toto je dynamic component</h3> | |
<p>Nejaky text</p> | |
` | |
return { template } | |
}) | |
</script> | |
<!--/* musi to byt jako bundle vue .. build, ne runtime vue */--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment