Skip to content

Glossary: Vue.js

v-bind

Also written: :attr, shorthand colon, :

A directive that sets an HTML attribute or component prop from a JavaScript expression. It's usually written with the colon shorthand, like `:alt="p.name"`.

Where the book teaches it

Related terms

DirectiveProp