Skip to content

RobbinHabermehl/gulp-angular-templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-angular-templates

This plugins allows you to bundle templates directly in your application using the $templateCache service.

Install it with npm install gulp-angular-templates --save-dev.

Usage

var angularTemplates = require('gulp-angular-templates');

gulp.task('html', function () {
    return gulp.src('app/partials/**/*.html')
        .pipe(angularTemplates())
        .pipe(gulp.dest('./build/'));
});

API

angularTemplates(options)

options.basePath

Type: String

The path that should be prefixed to the path that was specified using gulp.src.

options.module

Type: String

The name of the module that will be used.

options.standalone

Type Boolean

Indicate whether the module name that was specified using options.module is intended to be standalone.

About

Build angular modules from html template files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%