I am so beginner programming with Angularjs and I want to make post request to my server. On the server side I'am waiting data with key value pair. But when I try to post with the example code below I sent data in json so ı can't parse it on the server side. I googled this issue but i couldn't find the answer but I'm pretty sure there is a way. I hope somebody will tell this.
$scope.postData = function postData(data) {
$http.post('apiurl/functionName', {post_data:data}).success(
alert("Success"));
};