I am working on moving an angular 1.x site to a new angular 2.0 site I created the site using angular-cli 1.0.0-beta.15.
I have a button to export some data to a CSV fi
Install the Library as follows,
npm install file-saver --save
This will solve your problem.