5

There are

  • controllers
  • constants
  • directives
  • services
  • factory
  • run
  • config
  • filters

functions of angular.js. What is the calling order of all these modules?

Blue
  • 22,142
  • 7
  • 54
  • 87
Sunil Garg
  • 12,670
  • 19
  • 110
  • 153

1 Answers1

17

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
  • directive linking
  • filter render (w.r.t the markup)

Observe yourself here (Check Console).

EDIT

New Fiddle with filters added

M. Junaid Salaat
  • 3,647
  • 1
  • 22
  • 24