I try to assign data from $http.get to variable in my controller.
$http.get(URL).success(function (data) {
$scope.results = data;
console.log('results in $http.get :'+ $scope.results);
});
console.log('results after http.get'+ $scope.results);
First console log print data from get. After $http.get(url).success $scope.results prints as undefined.