Categories

Oct 7, 2019 in Vue.JS

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

1 Answer

Oct 7, 2019

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">
  {{message}}
  <input v-model="message">
</div>
<script type="text/javascript">
  var message = 'Vue.js is rad';
  new Vue({ el: '#app', data: { message } });
</script>
Click here to read more about Vue JS
Click here to read more about Insurance

Related questions

Madanswer
Oct 9, 2019 in Vue.JS
Oct 7, 2019 in Vue.JS
Oct 9, 2019 in Vue.JS
...