How to grab php data from angularJS?

Solution 1:

You can add a parameter in success callback to fetch the response from server if available.

var base64 = ''; 
$http({
    method : "POST",
    url    : "../opencv/MakeGray/MakeGray.php",
    data   : MakeGray_Form,
    transformRequest: angular.identity,
    headers: {'Content-Type': undefined}
    }).
    success(function(response){                     
          base64 = response; //response will contain whatever server echos to it's standard output
    })
    .error(function(){});

Solution 2:

you can get the response from server by using

.then(function (data) {}

and in "data" variable you can find the value you're looking for