LOGBOOK

HELP

Quiz Entry - updated: 2026.07.05

What does the v-bind directive do?

v-bind ties an HTML attribute to a JavaScript expression so the attribute updates reactively as that value changes.

<button v-bind:disabled="isButtonDisabled">Submit</button>

When isButtonDisabled is true, the button gets disabled attribute. When isButtonDisabled is false, the attribute is removed.

Shorthand: :disabled instead of v-bind:disabled

<button :disabled="email === ''">Submit</button>

Go deeper:

From Quiz: WEBT / Web Frameworks and Vue.js | Updated: Jul 05, 2026