```
<span @click="showModal = $event.target.innerHtml>Tag 1</span>
<span @click="showModal = $event.target.innerHtml>Tag 2</span>
<span @click="showModal = $event.target.innerHtml>Tag 3</span>

```

Clicking in any of the 3 spans will make `this.showModal` to have the value of each of the span content elements. But this code looks repetitive and unnecessary. I know I can create a component with v-for and have the data for the span contents somewhere else, but I want to know how to do this for very specific reasons. I'd like to have this:

```
<span>Tag 1</span>
<span>Tag 2</span>
<span>Tag 3</span>

```

And a function, e.g. in the hook `mounted()` of the component, that adds the v-on directive for `click` to each one of them.

Can you help me?

Thanks.