Answers for "vuejs emit to which level"

0

vue 3 emits

<template>
  <div>
    <p>{{ text }}</p>
    <button v-on:click="$emit('accepted')">OK</button>
  </div>
</template>
<script>
  export default {
    props: ['text'],
    emits: ['accepted']
  }
</script>
Posted by: Guest on March-26-2021

Browse Popular Code Answers by Language