const app = Vue.createApp({ data() { return { } }, methods: { }, }); // A component template app.component('name-of-component', { props: [], template: ` `, mounted() { // var self = this; // function to emit // self.$emit('funciton-of-emit', value); }, emits: [], }); app.mount('#game');