Skip to content

Instantly share code, notes, and snippets.

@mattmaribojoc
Created July 14, 2021 15:33
Show Gist options
  • Save mattmaribojoc/5cdf3a7f9bd3a0a62c58ed5d7317e3ac to your computer and use it in GitHub Desktop.
Save mattmaribojoc/5cdf3a7f9bd3a0a62c58ed5d7317e3ac to your computer and use it in GitHub Desktop.
<template>
<div>
<p> {{ data }} </p>
<custom-input
:data="data"
@update:data="data = $event"
/>
</div>
</template>
<script>
import CustomInput from './components/CustomInput.vue'
import { ref } from 'vue'
export default {
components: {
CustomInput,
},
setup () {
const data = ref('hello')
return {
data
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment