Skip to content

Instantly share code, notes, and snippets.

@revolunet
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revolunet/9402552 to your computer and use it in GitHub Desktop.
Save revolunet/9402552 to your computer and use it in GitHub Desktop.

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)
@ffesseler
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment