0 votes
in VueJS by
What are Dynamic Directive Arguments?

1 Answer

0 votes
by

In Vue 2.6 release onwards, Directive arguments can now accept dynamic JavaScript expressions. i.e, the specific argument that we want to use is only known at runtime.

Let's assign dynamic key and event directives for a div element,

<div v-bind:[key]="value"></div>
<div v-on:[event]="handler"></div>

Related questions

0 votes
asked Sep 6, 2023 in VueJS by DavidAnderson
+1 vote
asked Feb 6, 2023 in VueJS by john ganales
...