I am trying to update a status on database using this function of services
obj.post = function(q, object) {
return $http.post(serviceBase + q, object).then(function(results) {
return results.data;
});
}
My query is working fine and data is updated on database but, after getting success message, when I try to get this row again from database using the same service function, my result shows that the status has not been update.
$http.get()and$http.post()operate differently but you did not clarify that in your code. Also it is not clear what you what you want to archive when you return a success message and want to get the update model at the same time. The possibilities are many. please add more info to guide visitors. Thanks.