Trying to set a default value for a select in Vue.
<script src="https://unpkg.com/vue"></script>
<div id="app">
<select v:model="select">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
<script>
new Vue({
el: '#app',
data: {
select: '2'
}
})
<script>
The expected default value is 2
, but it's showing as 1
. Why?
Check out this fiddle - https://jsfiddle.net/dqgsbw9o/