I want to send a post request by angular. My problem is angular actually send a get request instead of a post request. My angular request is here:
$http({
method: 'POST',
url: pages_url,
params: {
'page': $scope.current_page_id,
'news': JSON.stringify(news),
'method': 'POST'
}
}).then(function (response) {
alert(JSON.stringify(response));
});
When i debug the request with network tab of browser, i see the parameter of the request in my server url. what should i do?