I have that simple code :
$http.get(\"/api/test\")
.success(function (data, status, headers, config) {
console.log(data);
return data;
Maybe a little on late but... At the moment Angular $http request give you a premise so you can change it to:
$http({
method: "yourMethod",
url: "yourUrl",
data: {yourDataObj}
}).then(function (res) { //first function "success"
console.log(res.data);
}, function (err) { //second function "error"
console.log(err);
});