in Vue.JS by

How to create Two-Way Bindings in Vue.js?

▼ Show 1 Answer

0 votes

v-model directive is used to create Two-Way Bindings in Vue js.In Two-Way Bindings data or model is bind with DOM and Dom is binded back to model.

In below example you can see how Two-Way Bindings is implemented.

<div id="app">


  <input v-model="message">


<script type="text/javascript">

  var message = 'Vue.js is rad';

  new Vue({ el: '#app', data: { message } });


Vue JS
Learn More with Madanswer

Related questions

0 votes
asked Oct 7, 2019 in Vue.JS by Tate
0 votes
asked Jan 9, 2020 in Vue.JS by GeorgeBell