0👍
Elaborating on the comment, please check this quick demo about how to set disabled
attribute dynamically.
<div id="app">
<div>Input: <input v-model="inputVal" /></div>
<div>
Checkbox:
<input
type="checkbox"
:disabled="inputVal === ''"
v-model="checkboxVal"
/>
</div>
</div>
Related docs: passing a boolean
- [Vuejs]-Vue JS – Reactive content in component
- [Vuejs]-Using vuejs if radio button is selected, use dropdown to replace image found in array
Source:stackexchange.com