Right now i show the data in a span tag, and the input to update it
Its possible to load data from api, load it into a input and then update the input to send it back with the new information?, which way are the best approachs?
<input v-model='name'> // see john and add john doe
data(){
return{
name:''
}},
created(){
this.data()
},
methods:{
updateData(){
// send the new name value to /updatename api
},
data(){
this.name = api // john its the value
}}