title: Angular 2 Best approach to use FileSaver.js
body: <p>I need to use the FileSaver.js (<a href="https://github.com/eligrey/FileSaver.js/" rel="noreferrer">https://github.com/eligrey/FileSaver.js/</a>) in my Angular2 application.</p>
  
  <p>I know I can add it as a script file in main html page and it will work. But I was wondering what would be the best approach in case of an Angular 2 (TypeScript) application so that I can just call window.saveAs to save file.</p>