Skip to content
Search

V-bind

lastmod 2022-08-31created 2020-10-155 edits

Simply put, think of it as v-model = v-bind:value + v-on:input.

.prop

.camel

.sync

Use it if you want to turn multiple properties into v-model. Simply put, think of it as v-bind:value.sync + v-on:update:value.

If you build a component like this:

<v-text-field :value="username" @input="$emit('update:username', $event)"></v-text-field>

Use it like this:

<form-user :nickname.sync="current.nickname"></form-user>

See also

author Zer0 sitemap