Thanks for the very insightful recap. I hope i got it right :)
is the dependency graph manually generated or you got a tool ?
suggestions :
maybe a quick recap of the steps as intro (then details) ?
- build the dependency tree by resolving modules dependencies from root->leaves
- allow modules to be configured via the provider pattern and the config block, from leaf->root (up the tree ?).
- now services are configured and ready to be instantiated
- exec modules run blocks up the tree in the same order
- finally exec then main module run block
- bootstrap angular
- instantiate the top most controller after all the required dependencies in the function definition declaration order (via $injector)
I've used Lucid Charts to create manually the graph.
It could be really interesting to do it automatically though (they do it in batarang so it should be possible).
Thanks for the suggestion, you got it right yes !
I'll add them in the 'next' version. I'm thinking about something a bit more interactive.