<template> <button @click="$emit('countChange', counte++)">emit value</button> </template> <script> export default { name: "child", data() { return { counte: 0 }; } }; </script>