How to load AMD modules when using Angular JS?

For some strange reason, Angular JS has its own modular system, which is neither AMD nor CommonJS .

I have many existing modules in AMD format. I would like to use them in an Angular app.

I would not want to rewrite any AMD modules. If possible, I would also like to avoid using Angular's own modular system.

Can i use AMD modules when using Angular? Is it possible to avoid using the Angular custom module system?

+5
source share
2 answers

Angular "Angular" (, angular.module('yourApp'). ('someDirective',...)), AMD Angular , Angular angular. .

+2

Angular, AMD. Angular AMD.

- " " . Angular, , Angular, AMD .

, , AMD .

+2

All Articles