0👍
You have access to the inputs value as the input and user.name
have a two-way binding through v-model
:
new Vue({
el: "#app",
data: {
user: {
name: ""
}
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
<input v-model="user.name" /> {{ user.name }}
</div>
- [Vuejs]-Bootstrap flex-column-reverse pushes column to new line
- [Vuejs]-Vue's @click function doesn't work in Firefox but works in Edge,Chrome
Source:stackexchange.com