I'm attempting to design a component like the following:
<template>
<option v-for="(text, value) in options" :value="value">
{{ text }}
</option>
</template>
Unfortunately, I encountered an error message:
A template syntax error occurred: Cannot use v-for on stateful component root element because it renders multiple elements
Is there a workaround for creating this type of component? I am working with vue version 2.0.5.
Check out these relevant resources: https://v2.vuejs.org/v2/guide/components.html#DOM-Template-Parsing-Caveats