9;&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 HTML Compiler</a> section of the Developer Guide.</p>
</td>
  </tr>
</table>

  
  
  



  
</div>


