I am studying a code from a former employee of the company and he used requireJS + angularJS. It created several modules with enough services etc, however, my question is: when using a service or a directive, does the require and the angular load any module or just the calling service or policy? Because I understood the advantages of using require, but I did not understand how it works in practice.