Skip to content

Instantly share code, notes, and snippets.

@JimYaaa
Last active September 19, 2021 16:12
Show Gist options
  • Save JimYaaa/f437b8923ebd5d927cb12e66e6d04e32 to your computer and use it in GitHub Desktop.
Save JimYaaa/f437b8923ebd5d927cb12e66e6d04e32 to your computer and use it in GitHub Desktop.
Vue 2 v-model 1
<ChildComponent v-model="pageTitle" />
// v-model 是下面寫法的語法糖:
<ChildComponent :value="pageTitle" @input="pageTitle = $event" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment