this case, you can access the clone via the cloneAttachFn:</p>
<pre><code class="lang-js">var templateElement = angular.element(&#39;&lt;p&gt;{{total}}&lt;/p&gt;&#39;),
    scope = ....;

var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {
  //attach the clone to DOM document at the right place
});

//now we have reference to the cloned DOM via `clonedElement`
</code></pre>
</li>
</ul>
<p>For information on how the compiler works, see the
<a href="guide/compiler">Angular HT