I am trying to create a MEAN crud operation. I have an api in node with the delete http method as so localhost:3000/api/user?id=. Below is t
localhost:3000/api/user?id=
If you are calling this method inside your component, use .subscribe()
.subscribe()
this.userService.deleteUser(user).subscribe(() => console.log("user deleted")); this.errorMessage = error);