Hi

I have code in JQuery

$.ajax({
    method: 'DELETE',
    url: some_url,
    data: data
});

and in angular

var $query = $http({
   method: 'DELETE
   url: some_url,
   data: data
});


The response of this two request are different.
In first method when is an error i get error message return from backend 
like "You cant delete this element"  but in the second method I get all 
html error 500 page with html/body/js/css tags etc etc.  

Why ?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to