https://github.com/dabeng/vue-basics
https://github.com/dabeng/vue-basics
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dabeng/vue-basics
- Owner: dabeng
- Created: 2018-06-22T06:46:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-22T06:52:40.000Z (about 8 years ago)
- Last Synced: 2025-03-22T22:42:40.579Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-basics
#### Difference between v-model and v-bind:value
```html
```
```html
```
So v-model is a two-way binding for form inputs. It combines v-bind, which brings a js value into the markup, and v-on:input to update the js value.
Use v-model when you can. Use v-bind/v-on when you must.
v-model [works with all the basic HTML input types](https://vuejs.org/v2/guide/forms.html) (text, textarea, number, radio, checkbox, select).