0.2.0 • Published 7 years ago

broccoli-ng-templatecache v0.2.0

Weekly downloads
3
License
BSD
Repository
github
Last release
7 years ago

broccoli-ng-templatecache

Convert Angular templates to $templateCache entries.

Installation

npm install --save broccoli-ng-templatecache

Usage

Pass the constructor a filtered set of trees containing Angular templates you want combined.

var NgTemplatecache = require('broccoli-ng-templatecache');
var tree = new NgTemplatecache([inputTrees], options);

Options

  • outputFile destination of the merged templates
  • module (default: "templates") generated module name. false means don't create a module
  • prefix (default: '') Prefix to add to template paths
  • standalone (default: false) if true, the module will be created as angular.module('xxx', [])