Hi,
I’m a bit confused, I can’t understand why there are no params sending to the backend:
var data = {"email":'mail', 'password': 'pass'};
promise = $http({
url: 'http://my_url',
method: "POST",
data: data
}).then(function(response) {
return response.data;
});
return promise;
Within the backend I’m just saying:
print_r($_POST);
The request is working and I’m reaching the php without a problem, only my params are not there. I have no clue what I’m doing wrong?! I always get an empty array within console log:
Array
(
)
Thanks for any help,
Chris