this post extends a previous one already solved. Please see it, to get in context: Nesting promises with $resources in AngularJS 1.0.7
With that approach in mind, I woul
As in your earlier question, there is no need to use a deferred here. Just use $q.all(), which returns a promise:
deferred
$q.all()
var parseURL = function() { $q.all([parseBoatType(), parseDestination()]) .then(function (results) { console.log(results); searchBoats(results); }); }; parseURL();