$http.delete(\'/api/carts/\' + productCode).
success(function() {
cart.products = someMethod();
updateTotals();
}).
error(function() {
console.log(\'C
delete is the JavaScript reserved keyword, and IE parse it as a keyword. Here is the solution. http://tech.pro/tutorial/1238/angularjs-and-ie8-gotcha-http-delete
Here is the javascript reserved keyword list
http://www.w3schools.com/js/js_reserved.asp
so its better to use $http['delete']
instead of $http.delete