Skip to content
Build angular modules from html template files
JavaScript
Find file
#3 Compare This branch is 4 commits ahead of ceymard:master.
Failed to load latest commit information.
.gitignore Initial refactoring
.npmignore Initial refactoring
README.md Initial refactoring
index.js fixed standalone options
package.json Bump version to v0.0.2

README.md

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.

Something went wrong with that request. Please try again.