In my opinion this is a sequence loading issue, I may be wrong, but according to what I experienced:
- html files are loaded first. Performed
- requireJs file
The problem then is that every time you use an angular directive it resolves to the actual module / controller / etc. is loaded.
The trick of loading the application into a document works, but for a fully functional application you need to load everything manually and not use the "ng-controller" (and other directives).
For me this is not a solution, just a workaround, and I'm sure requireJs can (or should) do better, so either it's a mistake for requireJs or there is another solution.
Hope this helps!
GournaySylvain
source
to share