Imagine an Angular application structured like this (generated from my phone, excuse any odd syntax):
angular.module('app1').controller(ctrl1, function($http){
$http.get(...);
});
angular.module('app2', ['app1']).run(function($http){
$http.default.headers.common.foo = 'bar';
});
Can we rely on the run block executing before the controller code? In other words, if I initialize my page using app2, can I be certain that all HTTP requests will include the default header?