 DOM inside your <strong>clone
attach function</strong>:</p>
<pre><code class="lang-js">var transcludedContent, transclusionScope;

$transclude(function(clone, scope) {
  element.append(clone);
  transcludedContent = clone;
  transclusionScope = scope;
});
</code></pre>
<p>Later, if you want to remove the transcluded content from your DOM then you should also destroy the
associated transclusion scope:</p>
<pre><code class="lang-js">transcludedContent.remove();
transclusionScope.$destroy();
</code></pre>
<di