I'm trying to create this component:
<template>
<option v-for="(text, value) in options" :value="value">
{{ text }}
</option>
</template>
But I get this error message:
template syntax error Cannot use v-for on stateful component root element because it renders multiple elements
How could I create this kind of component? I'm using vue 2.0.5
Here are some relevant docs: https://v2.vuejs.org/v2/guide/components.html#DOM-Template-Parsing-Caveats
v-forrenders multiple elements obviously. Wrap it in a parent element.