Folks,
I have my code setup somewhat as below:
$scope.init = function(){
return $q.all([resource1.query(),resource2.query(),resource3.query()])
you are printing data1 not $scope.data1
console.log(data1);
if i were you i would use it as follows
$scope.init = function(){
return $q.all([resource1.query(),resource2.query(),resource3.query()])
.then(result){
console.log(result[1]);
$scope.data1 = result[1];
$scope.data2 = result1[2];
$scope.data3 = result[3];
doSomething($scope.data1,$scope.data2);
}
}