1.0.5 • Published 7 years ago

gulp-ng-template-cache v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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.