Created
April 4, 2017 03:00
-
-
Save pablohpsilva/28bbda39dd2f0de21306e9c6e4cb5314 to your computer and use it in GitHub Desktop.
Comparing v-model with the combination of value and @input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<input v-model="someVariable" /> | |
<!-- Is the same as: --> | |
<input :value="someVariable" @input="onInputUpdateSomeVariable" /> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment