VueJs V-model

v-model varies based on value of form inputs element or output of components.

v-model directive that makes two-way binding between form input and app state a breeze.

Below the example

<!DOCTYPE html>
<html lang="en">
   <script type="text/javascript" src=""></script>
     <div id="app">
	     <input placeholder="enter your name"type="text" name="name" value="" v-model="name">
	     <div> {{ name }} </div>
     new Vue ({
        	el: '#app',
		data: {
		        name: ''


{{ name }}