How can I access the result of the $http.get
outside of its success callback function?
My code is
$http.get('http://myserver/' + $scope.myE)
.success(function(data)
{
$scope.mydata = data;
});
alert(JSON.stringify($scope.mydata));
I got undefined.