<p id="form-1">
<input type="checkbox" id="checkbox" v-model="toggle" :true-value='a' :false-value='b'>
<label for="checkbox">{{ toggle }}</label>
</p>
JS
new Vue({
el:'#form-1',
data:{
toggle:true,
a:'选了',
b:'没选'
}
})
Now I want this check box to be selected by default and the value is 'selected'. How should I write it?