Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

How and where is app.run() used? After module definition, after app.config() or after app.controller()?

I am adopting the BreezeJS Angular Q, which asks whether certain code can be run in the app.run() function.

1 Answer

0 votes
by (106k points)

Below is the order of how AngularJS app runs:-

  1. app.config()

  2. app.run()

  3. directive's compile functions (if they are found in the dom)

  4. app.controller()

  5. directive's link functions (again, if found)

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Sep 3, 2019 in Web Technology by Sammy (47.6k points)

Browse Categories

...