title: Detecting iframe load when downloading a file through the iframe
body: <p>I'm using AngularJS and setting ngSrc on an iframe, which I use to download a zipped archive to get around not being able to download files using AJAX.  I'm using a directive for detecting the iframe load that I found <a href="https://stackoverflow.com/questions/15882326/angular-onload-function-on-an-iframe">here</a>, which works great when you load a URL like "about:blank", but it doesn't have a load when I hit it with a RESTful call to download the file, even though it downloads the generated file.</p>
  
  <pre><code>// Markup of iframe using ngSrc and custom directive
  &lt;iframe ng-src="{{url}}" style="display:none;" iframe-onload="myCallback" /&gt;
  
  // Controller setting iFrame, what I'd like to trigger the load
  $scope.downloadArchive = function( id ) { // no load event? but downloads zip archive
  
      var url = '/data/archive/instance/' + id;
      $scope.url = $sce.trustAsResourceUrl( url );
  }
  
  // Controller setting iFrame, what does trigger the load
  $scope.downloadArchive = function( id ) { // load event triggered
  
      $scope.url = $sce.trustAsResourceUrl('about:blank');
  }
  </code></pre>
  
  <p>Is is possible to detect an event when downloading a zipped archive through the iframe?</p>