title: Download file using URL in firefox not working in angular JS
body: <p>My code works in google chrome that provide download and in firefox it always  show in new tab or selftab like XML file open in firefox how should I can download it?
  So provide me some suggestion to download functionality in angular JS or Java script for Firefox!
   This is my code which I tried </p>
  
  <pre><code>var link = document.createElement('a');
  link.setAttribute('href', url);
  link.setAttribute('download', filename);
  </code></pre>