>
> {data: {foo: 'baz bar'}}
>

is not the same as 
 

> data: {foo: 'baz bar'}
>

The difference is that you have the first one wrapped in an extra set of 
{}s, which tells $http that that is what you want to send for the data. If 
you did $http({url: url, method: 'PUT', {data: {foo: 'baz bar'}}}) you'd 
probably have the same thing come across.

>

-- 
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