I have the following code:
$http.post('data.php').success(function(data) {
return data;
}).error(function(data) {
console.log(data);
});
How to manipulate the data coming from this request?
I'm doing it this way:
var data = $scope.get_notas();
But when I use the variable date it returns me undefined