if using
$http.delete('api/contacts', Id);
Then getting error
But When Using
$http.delete('api/contacts/'+ Id);
Executing .
I don't Want to use URL Binding To pass data....
Please Help Me To Solve
if using
$http.delete('api/contacts', Id);
Then getting error
But When Using
$http.delete('api/contacts/'+ Id);
Executing .
I don't Want to use URL Binding To pass data....
Please Help Me To Solve
$http.delete('api/contacts', {data: {id: 666}});
Try that, and have a read about the config object in angular $http.
https://docs.angularjs.org/api/ng/service/$http#usage