/broccoli-ng-templatecache

Broccoli adapter for ng-templatecache

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

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', [])