I've use v-bind and v-model in my form input field. but when i run npm run dev command it's show the: v-bind:value="user.name" conflicts with v-model on the same element because the latter already expands to a value binding internally error.
in v-bind i'm bind my props value and in v-model use a local variable.
Here is my Code Sample:
<label>Name</label>
<input name="name" class="form-control" v-bind:value="user.name" v-model="username"/>
props:{
user:{
type:[Array,Object],
required:true,
},
},
data(){
return{
username:'',
email:'',
id:''
}
},