Hello!
I am developing a RESTful web application using AngularJS, I am using the ngResource module to send HTTP requests. Web service developed using FuelPHP.
I had a problem creating a resource using the $save ngResource . My web service does not receive email data.
When I test an HTTP request with Firebug, I can see the message data.
I do not understand why the mail data was not received by the web service. Therefore, if you have an idea, it would be great to help me.
Sorry for my poor level in English.
Here is the code:
Service : app.factory('Medication', ['$resource', 'global', function ($resource, global) { return $resource(global.API+'/medication/medication', {}, {}) }])
Method in the controller : $scope.addMedication = function() { var newMed = new Medication(); newMed.name = 'nameValue'; newMed.increaseinr = 1; newMed.details = 'detailsValue'; newMed.$save(); }
source share