Last active
April 18, 2019 07:24
-
-
Save kabitacode/7eef27b31f52912b1e3d7bc5419b0cd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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