I need to call a v-on event: click with a dynamic argument.
I tried the most logical way:
v-on:click="my_method({{value}})"
.
It does not work.
I need to call a v-on event: click with a dynamic argument.
I tried the most logical way:
v-on:click="my_method({{value}})"
.
It does not work.
Simply do this:
v-on:click="my_method(value)"
You do not need to use interpolation within dynamic HTML attributes. In VueJS 2 any attempt to interpolate attributes generates an error message.