function(scope, element, attrs, trvw) {
          // Compile our template
          if(!compiledContents) {
            compiledContents = $compile(trvw.getNodeTpl());
          }
          // Add the compiled template
          compiledContents(scope, function(clone) {
            element.append(clone);
          });

          // Call the post-linking function, if any
          if(link && link.post) {
            link.post.apply(null, arguments);
          }
        }
function(scope, element, attrs, trvw) {
          
          if(!compiledContents) {
            compiledContents = $compile(trvw.getNodeTpl());
          }
          
          compiledContents(scope, function(clone) {
            element.append(clone);
          });

          
          if(link && link.post) {
            link.post.apply(null, arguments);
          }
        }
function ( scope , element , attrs , trvw ) { // Compile our template
 if ( ! compiledContents ) { compiledContents = $compile ( trvw . getNodeTpl ( ) ) ; } // Add the compiled template
 compiledContents ( scope , function ( clone ) { element . append ( clone ) ; } ) ; // Call the post-linking function, if any
 if ( link && link . post ) { link . post . apply ( null , arguments ) ; } }
Compiles and re-adds the contents
Compiles and re - adds the contents