Created
July 17, 2014 11:14
-
-
Save hsubra89/8fd9b54cc684e22a44e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('someController', ['$scope', '$q', 'd3Service', function($scope, $q, d3Service) { | |
var promises = [d3Service.d3(), | |
Restangular.one('images/Example PDF.svg').get(), | |
Restangular.one("Job", $scope.jobID).one("Costing")]; | |
$q.all(promises) | |
.then(function(data) { | |
var d3 = data[0]; | |
var pdf = data[1]; | |
var costing = data[2]; | |
$scope.prepCostSheet(); | |
// Do Rest here. | |
}); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment