Skip to content

Put ng-templates from script to AngularJS $templateCache

License

Notifications You must be signed in to change notification settings

vostrik/gulp-ng-template-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Put ng-templates from script to AngularJS $templateCache

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published