0👍
use computed:
parent:
<my-component :isChecked="isAllStudentsFromClassSelected"></my-component>
computed: {
isAllStudentsFromClassSelected(){
return false
}
}
child:
<input class="form-check-input class-checkbox" type="checkbox" value="" id="all-tutors" :checked="isChecked">
props: ['isChecked']
- [Vuejs]-Can't pass a foreign key selected from a dropdown in Vue.js to my API in DRF
- [Vuejs]-Laravel vue js can't find data ID
Source:stackexchange.com