iled part of the DOM gets
   compiled again. This is an undesired effect and can lead to misbehaving directives, performance issues,
   and memory leaks. Refer to the Compiler Guide <a href="guide/compiler#double-compilation-and-how-to-avoid-it">section on double compilation</a> for an in-depth explanation and ways to avoid it.</p>

</div>


<div>
  

  

  <h2 id="usage">Usage</h2>
    
      <p><code>$compile(element, transclude, maxPriority);</code></p>


    

    
<section class="api-section">
  <h3>Ar