You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I noticed on the google group I'm one of many integrating Angular with RequireJS. Are you guys open to the idea of adopting the AMD standard for Angular's internals? Something I love about Angular is it's all about using future web technology today. AMD is today's solution for the upcoming ES6 modules. Adopting RequireJS/AMD would bring the following benefits to projects using Angular:
async loading of dependency files (strong complement to Angular's DI)
combined/compressed/optimized build, including inlined template strings (using RequireJS's r.js)
ability to lazy-load and load-on-demand any controller, templates, services etc.
unused angular modules won't be loaded, like jqlite (if using jQuery) or built in services that aren't used.
gets developers in the module mindset, with a likely straightforward migration path to Harmony modules
Downside is RequireJS adds 15k, but post-build can use require's 1k almond.js shim if necessary. Worth it IMO.
If you're open to this I'm happy to take this on and submit a pull request.