Skip to content

Instantly share code, notes, and snippets.

@kabitacode
Last active April 18, 2019 07:24
Show Gist options
  • Save kabitacode/7eef27b31f52912b1e3d7bc5419b0cd2 to your computer and use it in GitHub Desktop.
Save kabitacode/7eef27b31f52912b1e3d7bc5419b0cd2 to your computer and use it in GitHub Desktop.
update(form){
return axios.put('http://localhost:3000/users/' + form.id , {name: this.form.name}).then(res => {
this.load()
this.form.id = ''
this.form.name = ''
this.updateSubmit = false
}).catch((err) => {
console.log(err);
})
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment