Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created October 8, 2017 19:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save NMZivkovic/33a39ec896cfd57d4ce918c9bfbe8747 to your computer and use it in GitHub Desktop.
deleteUser(user:User)
{
this.userService.deleteUser(user)
.subscribe(
data => {
this.users.splice(this.users.indexOf(user), 1);
console.log("User deleted!");
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment