There are
- controllers
- constants
- directives
- services
- factory
- run
- config
- filters
functions of angular.js
. What is the calling order of all these modules?
There are
functions of angular.js
. What is the calling order of all these modules?
Learning this I made a fiddle observing the behaviour by console.log
. Its like
Observe yourself here (Check Console).
EDIT
New Fiddle with filters
added
directive compile
the controllers dependencies are loaded and then the services factories filters get loaded w.r.t the dependencies which are injected in the controller. –
Impassable © 2022 - 2024 — McMap. All rights reserved.