I'm sure this is boring - it has bothered me for some time now.
I wonder how AngularJS executes?
AngularJS provides some basics Module's Service, Provider and Factory and functions like app.run() and app.config().
What is the executing order of these modules and functions?
If I want to execute a function before the controller or directive executes where should I place it?
execute a function before the controller or directive executes? Can you give an example?angular-route, see if stackoverflow.com/questions/14765719/… helps you.