TestApp.controller('MainCtrl', ['$scope','$http', function ($scope,$http) {
$http.post('test.php')
.success(function(data){
console.log(data)
})
.error(function(data,status){
console.log('error');
})
}])
test.php
<?php
echo false;