1. Home
  2. Vue
  3. V-model

v-model binding is a directive designed to work with forms and input fields.

#vue#directive
<div id="app">
    <input type="text" v-model="hello">
    <p>{{ hello }}</p>
</div>

<script>
    new Vue({
        el: 'app',
        data: {
            hello: 'Good day!'
        }
    })
</script>
copy
Full Vue cheatsheet