everything lives in the name.
when creating a resource in angular:
myModule.factory('MyResource', ['$resource', function ($resource) { return $resource('api/MyResource/:id'); }]);
and use in the controller:
MyResource.save({att: att, att2: att2});
The service sends data to the json
artifact forward to the server.
I need to send data in the form x-www-form-urlencoded
.
Where should I change my code to solve this problem?
source share