How to get AngularJS autocomplete for templateUrl working?

Hi,

I have a smiliar project structure to the simplified project in the attached .zip file.
My templateUrls are relative to my index.html. The advantage of these templateUrls are that while development the templates will be directly loaded from these files.
Unfortunately WebStorm/Intellij does not detect these templateUrls and suggests templateUrls relative to the particular .js file (and sometimes I even do not understand the logic of the suggestions).
With absolute templateUrls (leading slash) the WebStorm/Intellij support works as desired but unfortunately while development and in production the AngularJS app is deployed via a .war file with another context path as "/". So this is not an option.

I'm grateful for all recommendations.

Kind regards

Martin



Attachment(s):
intellij.zip

Please sign in to leave a comment.