Send null as a value in ngResource AngularJS
问题 I'm using AngularJS 1.2.1's ngResource and I'm trying to send null as a value in the parameters in a PUT request. Unfortunately, when it is set, Angular will ignore it the parameter and not send it. Here's some example code: var User = $resource('/comments/:id', {id:'@id'}, { destroy: { method: 'PUT', params: {content: null} } }); var user = User.destroy({id:123}, function() {}); Angular will instead ignore content and not send the key nor the null value. How can I make Angular send null? 回答1