5👍
✅
Add users
as a first element of your user.permissions
array.
new Vue({
el: '#app',
data: {
user: {
permissions: ['users']
},
},
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js"></script>
<div id="app">
<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">
</div>
Source:stackexchange.com