Skip to content
masterclass Buddy

Vue.js · Directive

v-html

Vue directives are special v- attributes that update the DOM from JavaScript expressions. They can use arguments, dynamic arguments, and shorthand forms such as : and @.

Last updated

Syntax

v-directive[:argument][="expression"]

v-bind:attribute="value"  // :attribute="value"
v-on:event="handler"      // @event="handler"
v-bind:[name]="value"     // :[name]="value"

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • v-bind
  • :
  • v-on
  • @
  • v-if
  • v-html
  • v-for
  • v-slot

Source: Template Syntax | Vue.js. Checked 2026-11-03.