File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
packages/angular-templates-runtime Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,16 @@ var minifyHtml = function(html) {
101101 } ) ;
102102} ;
103103
104- function wrapAngularTemplate ( id , contents ) {
105- return "angular.module('angular-templates').run(['$templateCache', function($templateCache) { $templateCache.put('" +
106- id + "'," + JSON . stringify ( contents ) + ");}]);" ;
104+ function wrapAngularTemplate ( templateUrl , contents ) {
105+ return `
106+ angular.module('angular-templates')
107+ .run(['$templateCache', function($templateCache) {
108+ $templateCache.put('${ templateUrl } ', ${ JSON . stringify ( contents ) } );
109+ }]);
110+ if (typeof module !== 'undefined' && module.exports) {
111+ module.exports = "${ templateUrl } ";
112+ }
113+ ` ;
107114}
108115
109116StaticHtmlTagHandler . init = function ( tags ) {
You can’t perform that action at this time.
0 commit comments