What is the true difference between HTTP POST requests run by AngularJS and JQuery?
AngularJS:
$http.post(requestURL, {'data':myData})
JQuery:
$.post(requestURL,{data : data}
On my PHP backend, I have to run two different mechanisms to read the data. AngularJS works only with for some reason
$params = json_decode(file_get_contents('php://input'), true);
$data = $params['data'];
JQuery works with the standard
$data = $_POST['data']
How can I fix AngularJS to run on the "normal" $_POST
trail?
Both fail with the opposite PHP strategy.