angular-jsdoc icon indicating copy to clipboard operation
angular-jsdoc copied to clipboard

templatePathPrefix to directive template Url

Open maffelbaffel opened this issue 8 years ago • 1 comments

I'm currently developing a JavaEE based project with angular frontend. All my frontend stuff (js html css) is under src/main/resources. Now i am trying to document one of directives which looks like this:

var directive = function () {
        return {
            restrict: 'E',
            controller: Ctrl,
            templateUrl: 'app/mydirective/MyDirectiveTemplate.html'
        }
    };

The problem is now, jsdoc (or angular-jsdoc ;) ) does not find the MyDirectiveTemplate.html because it is not found under app/mydirective/MyDirectiveTemplate.html but src/main/resources/app/mydirective/MyDirectiveTemplate.html. If i change the templateUrl to src/main/resources/app/mydirective/MyDirectiveTemplate.html documentation works, but my app doesnt work in production ofc. What i need here is some sort of option templatePathPrefix. Is this already possible and i am missing it ? Or would this be a valid "feature"?

maffelbaffel avatar Jun 16 '16 08:06 maffelbaffel

#72

Zemke avatar Jun 21 '16 14:06 Zemke