I have always been a supporter of requirejs and AMD, but since I began to study AngularJS, it has become inconvenient for me to combine the two technologies together.
I know that you can actually use requirejs to manage and load dependencies in an angularjs application, and the same developers call the two products "orthogonal", but how many can be added?
The first argument that comes to my mind is dependency injection, it actually separates the dependencies between the modules, which means that I don't need to track the dependencies or script loading order (at least most of the time). In addition, it seems that AMD may even go against the principles that underlie DI, because this requires hard-coded dependency somewhere in the scripts ...
So it would be reasonable to say that using AMD in the angulajs application will add only additional complexity without bringing any significant advantages?
Mario source share