Skip to content

Is it possible to escape template element with v-if from the renderer and use it as an html element? #13275

Discussion options

You must be logged in to vote

You'd need two <template> tags instead:

<template v-if="true">
  <template shadowrootmode="open">
    <h1>Declarative Shadow DOM</h1>
  </template>    
</template>

You can't achieve the desired result with a single <template> tag.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by edison1105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants