Complete the code to bind the input value using v-model.
<template> <input type="text" [1] /> </template>
The v-model directive binds the input's value and updates the variable automatically.
Complete the code to declare the reactive variable for the input.
<script setup> import { ref } from 'vue' const name = [1]('') </script>
The ref function creates a reactive variable for simple values like strings.
Fix the error in the input binding to correctly update the variable.
<template> <input type="text" v-model=[1] /> </template>
In Vue templates, use the variable name directly without quotes or .value when using v-model.
Fill both blanks to create a two-way binding with a placeholder.
<template> <input type="text" [1] [2] /> </template>
Use v-model to bind the input value and v-bind:placeholder with a string to set the placeholder dynamically.
Fill all three blanks to create a reactive input with initial value and display it.
<template> <input type="text" [1] /> <p>Your name is: [2]</p> </template> <script setup> import { ref } from 'vue' const [3] = ref('Alice') </script>
Bind the input with v-model="name", display the variable name, and declare name as a ref with initial value.