Hey Chris,
Try User.add({userid:123, loc:'glasgow'}); instead and see if it worksOn Saturday, June 23, 2012 at 10:31:14 PM UTC-7, [email protected] wrote: > Hi, > > > var User = $resource(url, {userId:'@id'} , {add: {method: PUT, > params:{location:@loc} } } > > User.add({id:123, loc:'glasgow'}); > > When I am using the PUT method the above data passed to the User add > function is being passed as JSON data rather than url query parameter. Is > there a way to pass url query parameters with the PUT method using > $resource? > > Thanks, > Chris. > -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
