Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Vue 3 v-bind Directive

Vue 3 v-bind Directive

Vue3 Built-in Directives Vue 3 Built-in Directives


v-bind The directive is used to dynamically bind an attribute or component prop, so the attribute value can respond to data changes.


Basic Explanation

v-bind The directive is used to dynamically bind one or more attributes to an expression. It allows the attribute value to be dynamic rather than a fixed string.


Basic Usage

Example

Example


Dynamically bind class and style

Example

Content

Style


Vue3 Built-in Directives Vue 3 Built-in Directives