Closed scotthew closed 6 years ago
https://www.npmjs.com/package/gulp-angular-templatecache#templatebody-string-templatebodysee-below
The example in the README should construct the template with single quote arguments:
var TEMPLATE_BODY = '$templateCache.put(\'<%= url %>\',\'<%= contents %>\');'; or var TEMPLATE_BODY = "$templateCache.put('<%= url %>','<%= contents %>');";
var TEMPLATE_BODY = '$templateCache.put(\'<%= url %>\',\'<%= contents %>\');';
var TEMPLATE_BODY = "$templateCache.put('<%= url %>','<%= contents %>');";
https://www.npmjs.com/package/gulp-angular-templatecache#templatebody-string-templatebodysee-below
The example in the README should construct the template with single quote arguments:
var TEMPLATE_BODY = '$templateCache.put(\'<%= url %>\',\'<%= contents %>\');';
orvar TEMPLATE_BODY = "$templateCache.put('<%= url %>','<%= contents %>');";