Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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