1👍
You can not bind the value and set the value in the @input
event.
new Vue({
el: "#app",
data: {
foo: 'some default value',
},
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js"></script>
<div id="app">
<input type="text" @input="foo = $event.target.value">
<p>{{foo}}</p>
</div>
Source:stackexchange.com