I am diving into the world of Vue.js
Currently, I have a set of checkboxes:
<input type="checkbox" value="users" class="pull-right" v-model="user.permissions">
<input type="checkbox" value="edit user" v-model="user.permissions">
<input type="checkbox" value="add user" v-model="user.permissions">
Each checkbox updates data in the user.permissions
array when checked.
user:{
permissions: []
},
I'm trying to figure out how to have a specific checkbox checked by default. I attempted to use :checked="isTrue"
but it didn't work as expected.
The following checkbox should be checked by default:
<input type="checkbox" value="users" class="pull-right" v-model="user.permissions">