Emitting an Event on an Attribute in Vue

You can emit an event directly in the handler attribute:

components/User.vue<template>
  <button @click="$emit('show')">
    btn
  </button>
</template>

You can also pass parameters:

components/User.vue<template>
  <button @click="$emit('show', 'xxx', 'yyy')">
    btn
  </button>
</template>
Задание 1

Make a button that will emit some event when clicked.