yes, the $ will be striped: before the data is send, the data will be transformed with angular.toJson
function:
@name angular.toJson
@function
@description
Serializes input into a JSON-formatted string. Properties with leading $ characters will be stripped since angular uses this notation internally.
If you don't want this behavior you have to provide a transformRequest function (http://docs.angularjs.org/api/ng.$http). If your data is already json you may just write:
transformRequest: function(data){
return data;
}
the transformRequest must be provided as option during resource configuration. see
http://docs.angularjs.org/api/ngResource.$resource