Skip to content

Instantly share code, notes, and snippets.

@JimYaaa
Created September 19, 2021 17:07
Show Gist options
  • Save JimYaaa/e27cb20a4f401c4dba855def5cf77b3a to your computer and use it in GitHub Desktop.
Save JimYaaa/e27cb20a4f401c4dba855def5cf77b3a 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