title: Accessing elements inside ng-template
body: <pre><code>&lt;script type="text/ng-template" id="popupTemplate"&gt;                                             
  &lt;div id="myPopup"&gt;                   
              &lt;input type="checkbox" name="backup"/&gt;&lt;label for="backup"&gt;Backup&lt;/label&gt;
  &lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to access the popup div from outside script for adding more check boxes dynamically. I tried using jQuery <code>$("#myPopup")</code> but it is not accessing the element. Is there any way to achieve this?</p>