I'm trying to populate a select tag with options from an array variable that contains arrays of number values. However, the values being output appear to be blank.
Here is the HTML code:
<select required id="dropDown">
<option>Select here</option>
<option v-for="choice in choices">{{ choice }}</option>
</select>
And here is the Javascript code:
var vm = new Vue({
el: 'body',
data:{
'choices': [1,2,3,4,5]
}
});
Could anyone kindly point out where I may have gone wrong? I am new to this and would appreciate any guidance or advice you can provide.