title: Is it possible to force file downloads in browsers with angularjs?
body: <p>I'm have developed a SPA (Single Page Application) with AngularJS and I'm trying to force a pdf file download with AngularJS.</p>
  
  <p>By the moment I only can open de pdf file in a new tab with the next code.</p>
  
  <p>HTML view:</p>
  
  <pre><code>&lt;a ng-click="download()"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>$scope.download = function(){
      $window.open('/cv.pdf', '_blank');
  };
  </code></pre>
  
  <p>Is there any way to force the pdf download in the browser?</p>
  
  <p>You can see this example in the following URLs:</p>
  
  <p>www.juanmanuellopezpazos.es/curriculum (HTML View)</p>
  
  <p>www.juanmanuellopezpazos.es/Curriculum.pdf (pdf file whose download I want to force)</p>