[Vuejs]-Is there a way to show a div inside a div that has a false v-if statement

0👍

I think you are probably looking for something like this. With this code you can keep a parent element while looping only the childs. It gives you the possibilty to use the conditional directives on the childs due to the template tag had became the parent.

-Example from vue-js docs-
Try it to your problem and tell me if it solves it

<ul>
  <template v-for="item in items">
    <li>{{ item.msg }}</li>
    <li class="divider" role="presentation"></li>
  </template>
</ul>

Leave a comment