Put ng-templates from script to AngularJS $templateCache
Install with npm
npm install gulp-ng-template-cache --save-dev
gulpfile.js
var ngTemplateCache = require('gulp-ng-template-cache');
gulp.task('default', function () {
return gulp.src('templates/**/*.html')
.pipe(ngTemplateCache())
.pipe(gulp.dest('public'));
});
Name of AngularJS module.
Name of js bundle with templates.