Hi
If i have
$http.get('/url').success(function(data){
$scope.result = data;
console.log($scope.result) //log 1
})
console.log($scope.result) //log 2
I can comfortable console.log log1 but log 2 returns undefined.
How do manipulate the $scope.result so it can be available to all
controller in my module.
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.