Using v-for or v-if on multiple elements

Using v-for or v-if on multiple elements

Items to which v-if or v-for apply can be grouped inside <template> tags. For example:

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