Skip to content

Instantly share code, notes, and snippets.

@hsubra89
Created July 17, 2014 11:14
Show Gist options
  • Save hsubra89/8fd9b54cc684e22a44e2 to your computer and use it in GitHub Desktop.
Save hsubra89/8fd9b54cc684e22a44e2 to your computer and use it in GitHub Desktop.
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