@
<script> function sayHi(event) { const buttonName = event.target.name alert(`You clicked ${ buttonName } to says hi! ππΌ`) } </script> <template> <button @click="sayHi" name="the-button">click</button> </template>