I have an angular module that requires another custom angular module. The consuming module has a $route.resolve for one of the routes. If the module dependency is rendered in the page associated with that route, will that dependency module also wait for the completion of the resolve? I feel like the dependency module is bootstrapped before the consuming module, and would therefore not wait, but I just wanted to be sure.
1 Answer
Angular doesn't distinguish modules after bootstrapping, it doesn't matter which module this dependency belongs to.
If a resolver is defined for current route, it affects this route.
ng-view contents (route controller and route template) won't be intialized until route resolvers are resolved. Resolvers won't affect anything outside of ng-view directive.
ng-viewcontents (route controller and route template) won't be intialized until route resolvers are resolved, everything else is the consequence.