Vue တွင် attribute အတွင်း event ထုတ်လွှတ်ခြင်း
Event handler attribute အတွင်းမှ တိုက်ရိုက် event ထုတ်လွှတ်နိုင်ပါသည်။
<template>
<button @click="$emit('show')">
btn
</button>
</template>
ထိုသို့လုပ်ဆောင်ရင်း parameter များ ထည့်သွင်းပေးနိုင်ပါသည်။
<template>
<button @click="$emit('show', 'xxx', 'yyy')">
btn
</button>
</template>
ကလစ်နှိပ်လိုက်သည်နှင့် event တစ်ခု ထုတ်လွှတ်မည့် ခလုတ်တစ်ခုကို ပြုလုပ်ပါ။