给定这个http请求:
$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;
});
}
如何在我的函数范围之外传递返回的对象(数据)?