According to the official documentation,
<button v-bind:disabled="isButtonDisabled">Button</button>
In this example, the disabled
attribute will be added if isButtonDisabled
is equal to 0
, despite the fact that in JavaScript, 0
is considered a falsy value.