Get text field value onkeyup vue js
The solution is:
<input type="text" v-on:keyup="this.$data.name = $event.target.value">
From documentation:
When listening to native DOM events, the method receives the native event as the only argument. If using inline statement, the statement has access to the special $event property: v-on:click="handle('ok', $event)"
jsfiddle
The best way to handle any key with Vuejs is like this :
<input type="text" @keyup.stop.native="handleInput($event)">