Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Last active June 19, 2024 11:48
Show Gist options
  • Save ABooooo/6c14a06fc6002c635aa5785dd2bbb45d to your computer and use it in GitHub Desktop.
Save ABooooo/6c14a06fc6002c635aa5785dd2bbb45d to your computer and use it in GitHub Desktop.
<template>
<h1>{{ title }}</h1>
<p>Edit title: </p>
<input v-model="title" type="text"/>
</template>
<script setup>
import { ref } from 'vue'
const title = ref('juhu') //this ref is conected to input and DOM. Changing it in input it also changes in DOM and other way around
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment