37
rated 0 times
[
38]
[
1]
/ answers: 1 / hits: 14192
/ 10 Years ago, mon, june 16, 2014, 12:00:00
Thanks to this answer AngularJS app.run() documentation? i can see the order in which modules are ran by Angular, my question is:
if I have:
app.config(function () {
$routeProvider.when('/', {
....
resolve: {
// something to resolve
}
});
});
app.run(function () {
// something to run
});
Will run()
be executed before the routeProvider resolve:{}
is resolved?
More From » angularjs