Closed amcdnl closed 9 years ago
Smoother is to just export default angular.module('...')
, then you just write:
import myTemplateFile from './template.tpl'
Sadly the main developer rejected my pull request. =(
https://github.com/marklagendijk/gulp-ng-html2js/issues/15 https://github.com/marklagendijk/gulp-ng-html2js/pull/16
Doesn't matter cause the object returned from angular.module has a .name property. Works great.
Fixed by latest push using template.
With the new version of gulphtml2js we can define a custom header template, this would allow us to use ES6 better. https://github.com/marklagendijk/gulp-ng-html2js/pull/9
so templates might be like:
then you could use it like: