Php does not receive the data I pass with $ http.post from the angular

1

Hello everyone. I am trying to get some data that is passed by $ http.post to a php script. This is my angled ajax:

    $http.post('../_classes/chamaOddss.php', id).then(function(datae) {
        console.log(datae);
    });

This is my php script that I use to receive this data:

$jogoId = file_get_contents("php://input");
echo $jogoId;

o

  

console.log (datae)

show this:

  

Object {data: "null", status: 200, config: Object, statusText: "OK"}

Can you help me? Thanks!

    
asked by anonymous 09.03.2017 / 16:18

0 answers