1. Home
  2. Vue
  3. V-model
#vue#directive

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

<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
Sitemap Git repository