Skip to content

Instantly share code, notes, and snippets.

@kabitacode
Last active April 18, 2019 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kabitacode/b96b3173258ba04518a6ef2e32729030 to your computer and use it in GitHub Desktop.
Save kabitacode/b96b3173258ba04518a6ef2e32729030 to your computer and use it in GitHub Desktop.
del(user){
axios.delete('http://localhost:3000/users/' + user.id).then(res =>{
this.load()
let index = this.users.indexOf(form.name)
this.users.splice(index,1)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment