Is it possible to escape template
element with v-if
from the renderer and use it as an html element?
#13275
Answered
by
skirtles-code
JianJroh
asked this question in
Help/Questions
-
<template v-if="true" shadowrootmode="open">
<h1>Declarative Shadow DOM</h1>
</template> html result: Expect a way to render the result including the |
Beta Was this translation helpful? Give feedback.
Answered by
skirtles-code
May 5, 2025
Replies: 1 comment
-
You'd need two <template v-if="true">
<template shadowrootmode="open">
<h1>Declarative Shadow DOM</h1>
</template>
</template> You can't achieve the desired result with a single |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
edison1105
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd need two
<template>
tags instead:You can't achieve the desired result with a single
<template>
tag.