docs/app/js/codepen.js
function insertTemplatesAsScriptTags(indexHtml, demo) {
      if (demo.files.html.length) {
        var tmp = angular.element(indexHtml);
        angular.forEach(demo.files.html, function(template) {
          tmp.append("<script type='text/ng-template' id='" +
                     template.name + "'>" +
                     template.contents +
                     "</script>");
        });
        return tmp[0].outerHTML;
      }
      return indexHtml;
    }
function insertTemplatesAsScriptTags(indexHtml, demo) {
      if (demo.files.html.length) {
        var tmp = angular.element(indexHtml);
        angular.forEach(demo.files.html, function(template) {
          tmp.append("<script type='text/ng-template' id='" +
                     template.name + "'>" +
                     template.contents +
                     "</script>");
        });
        return tmp[0].outerHTML;
      }
      return indexHtml;
    }
function insertTemplatesAsScriptTags ( indexHtml , demo ) { if ( demo . files . html . length ) { var tmp = angular . element ( indexHtml ) ; angular . forEach ( demo . files . html , function ( template ) { tmp . append ( "<script type='text/ng-template' id='" + template . name + "'>" + template . contents + "</script>" ) ; } ) ; return tmp [ 0 ] . outerHTML ; } return indexHtml ; }
Adds templates inline in the html, so that templates are cached in the example
Adds templates inline in the html so that templates are cached in the example