Vue Directives
up:: Vue
Dynamic attribute name
Attributes can also be set with a dynamic key.
<!-- dynamic attribute name -->
<button v-bind:[key]="value"></button>
Search
Jan 15, 2024
up:: Vue
Attributes can also be set with a dynamic key.
<!-- dynamic attribute name -->
<button v-bind:[key]="value"></button>