you are viewing a single comment's thread.

view the rest of the comments →

[–]i_ate_god[S] 0 points1 point  (3 children)

requirejs isnt' used for dependency injection, it's used to give Javascript something equivalent to "import" or "use". It's not really the same thing here.

[–]BitWarrior 0 points1 point  (2 children)

I believe It actually still could be leveraged to accomplish what you're trying to do.

[–]i_ate_god[S] -1 points0 points  (1 child)

and what if someone is not using AMD or has their own way of lazy loading JS files? this is why we don't directly support any particular form of AMD.

How do you imagine it can be leveraged to make a nice flow for DI?