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=<some document id>. Below is the angular code I use:
deleteUser(user) {
console.log("user to delete:" + user._id);
let myParams = new URLSearchParams();
myParams.append('id', user._id);
return this.http.delete('/api/user', { search: myParams })
.map(res => res.json());
}
The correct id is being printed to console but I am not able to see even the call being made in the chrome network bar nor has the data being deleted. Any ideas what is going wrong?