By webfansplz @webfansplz
For this challenge, we're going to implement a simple v-model
directive. Lets go 👇:
<script setup lang='ts'>
import { ref } from "vue"
/**
* Implement a custom directive
* Create a two-way binding on a form input element
*
*/
const VOhModel = {
}
const value = ref("Hello Vue.js")
</script>
<template>
<input v-oh-model="value" type="text" />
</template>