title: Refreshing iframe contents in AngularJS
body: <p>I am writing an application which is part Angular and part jQuery. I am separating them by loading the jQuery content in an iFrame.</p>
  
  <p>Upon a certain event (say, upon a ng-click), I need to refresh the iFrame. My Controller contains the following code:</p>
  
  <pre><code>$scope.refreshIframe = function() { //refresh the iFrame with id "anIframe" };
  </code></pre>
  
  <p>and the iFrame is:</p>
  
  <pre><code>&lt;iframe id="anIframe" src="myUrl"&gt;&lt;/iframe&gt;
  </code></pre>