Thank you for this loader. It does great job. However it leads to some code duplication. Calling require('some.html') will generate JS code that only adds some.html to $templateCache. It would be great if that require() call would return templateUrl. It can be very clear on directive example:
Thank you for this loader. It does great job. However it leads to some code duplication. Calling
require('some.html')
will generate JS code that only addssome.html
to$templateCache
. It would be great if thatrequire()
call would returntemplateUrl
. It can be very clear on directive example:As you can see I have to manually set
templateUrl
of the directive. It would be great if this would be possible: