bindbidirectional vue js

JavaScript
<template>   <div>      <input type="text" v-model="inputData" @keyup="$emit('update',inputData);" />   </div></template><script>   export default {      name: "HelloWorld",      props: {         inputData: String      }   };</script><SampleComponent :inputData="parentData" @update="parentData = $event;" />
Source

Also in JavaScript: