Recently, to have an application angular 2.0 ready I’ve divided an angular 1.5 application
to small modules.
Of course this process wasn’t a straight forward one, however finding where there is a missing or
error module was critical, otherwise I’ll get an error message on the main module I have a little to do with.
Therefore, I’ve built a small recursive function, using the module.requires array property (available from v1.2)
, which I want to share:
This function goes recursively in the modules tree and prints to the error console of the module it can’t get.
It is also available on the following gist: