Is there any way we can pass the function name from the parameters ?
some thing like this..
<tr v-for="item in items" class="static"
v-bind:class="{'evenRow': item.oddeven=='1', 'oddRow': item.oddeven=='0' }"
@click="item.click(item.contactID)" >
</tr>
item.click is not converting as corresponding function while rendering the page. what is the correct approach any suggestions will be appreciated ?
@click="[fuctionName]($event, index)"
Example:
You can pass data with event
or, take a readonly input field with v-model
Example :
And from template when iterating over items you can call that function by passing the function name like