angular-tpl2js
Inject AngularJS directive templates as inline JavaScript
Install
npm install angular-tpl2js --save-dev
API
inline(path, [config], callback)
let tpl2js = ; tpl2js;
config
include
for retrieving ng-include templates and HTMLMinifier
, a relay for html-minifier options
// defaultslet config = include: false HTMLMinifier: collapseWhitespace: true removeComments: true
tpl2js;
Usage With Gulp
Please use the gulp-angular-tpl2js plugin for use with gulp.