given this http request:
$scope.obj = {}
$scope.loadTourInfo = function() {
var httpRequest = $http({
method: 'GET',
url: 'https://s3.amazonaws.com/mirror.discoverhawaiitours.com/activity_object_json/11204.json'
}).success(function(data) {
$scope.obj = data;
});
}
how can I pass the returned object (data) outside of my function's scope?