After finding the answer on AngularJS app.run() documentation, I now understand the sequence in which Angular runs modules. This leads me to my question:
Consider the following code snippet:
app.config(function () {
$routeProvider.when('/', {
....
resolve: {
// something to resolve
}
});
});
app.run(function () {
// something to run
});
My query is, will the run()
function be executed before the routeProvider's resolve:{}
is resolved?