
AngularJS: Timing Multiple resource Resolves in ngRoute and ui-router
Both AngularUI Router and Angular's own ngRoute support the concept of a resolve, an optional map of dependencies which should be injected into a controller associated with a particular state. Let's look at how we can resolve multiple external resource calls before transitioning to a new state.