Closed slavede closed 10 years ago
Sure, you have a couple of options:
url
option & customize the string all you want: https://github.com/ericclemmons/grunt-angular-templates#urlcwd
so that the templates are compiled relative to a current directory: https://github.com/ericclemmons/grunt-angular-templates#register-relative-template-urlscwd made it for me..thanks!
I want to create template .js file that has same path as .html.
I have standard yo angular structure of project
So I have in my directive (it's located in app/scripts/directives):
My template is in app/views/directive/menu.tpl
When I run ngtemplates it generates following part of code:
you can see that it searches directive template in different place than it's defined in directive.js making it not found.
app/ should be removed from template path...