What is the calling order of angularjs functions (config/run/controller)? [duplicate]
问题 This question already has answers here : AngularJS app.run() documentation? (2 answers) Closed 3 years ago . There are controllers constants directives services factory run config filters functions of angular.js . What is the calling order of all these modules? 回答1: Learning this I made a fiddle observing the behaviour by console.log . Its like app config app run directive setup directive compile (app controller dependencies) service factory inner factory inner service app controller filter