ng-templatecache
Convert Angular templates to $templateCache entries.
Installation
npm install --save ng-templatecache
Usage
var templatecache = ;var myTemplate = '<div>Hello, {{firstName}}</div>';templatecache;
Results in
angular;
Options
entries
The list of entries to be added to the cache, each containingpath
andcontent
module
(default:"templates"
) sets the generate module name.false
means don't create a moduleprefix
(default:''
) Prefix to add to template pathsstandalone
(default:false
) iftrue
, the module will be created asangular.module('xxx', [])