Skip to content

Instantly share code, notes, and snippets.

@JimYaaa
Created September 19, 2021 17:05
Show Gist options
  • Save JimYaaa/754284ce6b7b5452d3e17ee1a64dc80e to your computer and use it in GitHub Desktop.
Save JimYaaa/754284ce6b7b5452d3e17ee1a64dc80e to your computer and use it in GitHub Desktop.
Vue 3 v-model arguments
<ChildComponent v-model:title="pageTitle" />
// v-model:title 是下面寫法的語法糖:
<ChildComponent :title="pageTitle" @update:title="pageTitle = $event" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment