Link Search Menu Expand Document

@ Directive for binding Events

<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>