I'm trying to pass an object property into a click event. I know you cannot pass curly brackets into html attributes since I have the title property output correctly. But how to do the same when trying to render a click event?
<p class="control" v-for="range in ranges">
<a class="button is-outlined is-primary has-text-black" :title="range.title" @click="getNumber({{ range.id }})">{{ range.title }}</a>
</p>
invalid expression: expected property name, got '{' in
getNumber({{ range.id }})
Raw expression: @click="getNumber({{ range.id }})"