Could anyone tell me why the following statement does not send the post data to the designated url? The url is called but on the server when I print $_POST - I get an empty
Just put the data you want to send as second parameter:
$http.post('request-url', message);
Another form which also works is:
$http.post('request-url', { params: { paramName: value } });
Make sure that paramName
exactly matches the name of the parameter of the function you are calling.
Source: AngularJS post shortcut method