Currently, I am using AngularJS and RequireJS in my single-page application (SPA). To organize imports efficiently, I rely on RequireJS. With RequireJS, I can utilize features like baseUrl to resolve import paths seamlessly. Now, I wish to apply the same resolution methodology to templateUrls as well. For this purpose, I'm considering:
templateUrl = requirejs.toUrl("modules/test/chuck.directive.html")
The main issue I face is resolving every templateUrl of each directive in this manner.
Hence, my question is: Is there a way to intervene in the template loading process of directives in Angular and execute the aforementioned code?
Your insights and assistance would be greatly appreciated.