Automatically wraps global dependencies into an Angular injectable. Works for most libraries that support requirejs.
Allows you to inject third party libraries which would normally be globals (and prevent most from declaring themselvess globally).
I loved require.js because it finally freed me of global variables in my js. During my first Angular.js project, however, it became clear that:
Angular.js + require.js = more trouble than its worth
I spent some time trying to come up with a solution that accomplished a few goals: * No editing of third party code. * No extra boilerplate angular code for each new dependency * Support for bower * Avoid requiring extra build steps
Add scripts to your page in the following order:
[jQuery, Angular, Angular Define Wrapper, ...]
Inject your globals as you would any other angular injectable.
Help and Support
If you encounter any bugs or compatibility issues with any third party library please submit an issue or pull request. I plan on maintaining this tool, but I'd appreciate any community support I can get.