gulp-ng-template-cache
v1.0.5
Published
Put ng-templates from script to AngularJS $templateCache
Downloads
8
Readme
gulp-ng-template-cache
Put ng-templates from script to AngularJS $templateCache
Install
Install with npm
npm install gulp-ng-template-cache --save-dev
Example
gulpfile.js
var ngTemplateCache = require('gulp-ng-template-cache');
gulp.task('default', function () {
return gulp.src('templates/**/*.html')
.pipe(ngTemplateCache())
.pipe(gulp.dest('public'));
});
API
options
moduleName - {string} [moduleName='templates']
Name of AngularJS module.
bundleName - {string} [bundleName='templatecache.js']
Name of js bundle with templates.