docs/app/js/codepen.js
function applyAngularAttributesToParentElement(html, demo) {
      var tmp;

      // Grab only the DIV for the demo...
      angular.forEach(angular.element(html), function(it,key){
        if ((it.nodeName != "SCRIPT") && (it.nodeName != "#text")) {
          tmp = angular.element(it);
        }
      });

      tmp.addClass(demo.id);
      tmp.attr('ng-app', 'MyApp');
      return tmp[0].outerHTML;
    }
function applyAngularAttributesToParentElement(html, demo) {
      var tmp;

      // Grab only the DIV for the demo...
      angular.forEach(angular.element(html), function(it,key){
        if ((it.nodeName != "SCRIPT") && (it.nodeName != "#text")) {
          tmp = angular.element(it);
        }
      });

      tmp.addClass(demo.id);
      tmp.attr('ng-app', 'MyApp');
      return tmp[0].outerHTML;
    }
function applyAngularAttributesToParentElement ( html , demo ) { var tmp ; // Grab only the DIV for the demo... angular . forEach ( angular . element ( html ) , function ( it , key ) { if ( ( it . nodeName != "SCRIPT" ) && ( it . nodeName != "#text" ) ) { tmp = angular . element ( it ) ; } } ) ; tmp . addClass ( demo . id ) ; tmp . attr ( 'ng-app' , 'MyApp' ) ; return tmp [ 0 ] . outerHTML ; }
Adds class to parent element so that styles are applied correctly Adds ng-app attribute.  This is the same module name provided in the asset-cache.js
Adds class to parent element so that styles are applied correctly Adds ng - app attribute . This is the same module name provided in the asset - cache . js