My challenge involves a controller that must retrieve two distinct REST resources to populate two dropdowns. I want to ensure that neither dropdown is populated until both $http.get() calls have completed, so that the options are displayed simultaneously rather than sequentially.
Is there a way to combine these $http.get() calls in a graceful manner and efficiently manage setting the $scope variables for both arrays without needing to handle different scenarios where one resource returns before the other?