title: How to "save as" file created by a web-app to client hard drive
body: <p>My problem is simple (I hope) but not too well documented (or I am a bad researcher).</p>
  
  <p>I am developing a web service using angular and slickgrid.</p>
  
  <p>The user can visualize the data in the grid filtered in any way they want, and I, in the controller, can get this data as an array of json objects with simply $scope.grid.getData</p>
  
  <p>What the user needs now is a "save as" button that allows them to save this data they can see in the grid (which I can process in the controller side to turn into something like an excel file or a csv).</p>
  
  <p>All the information I am finding is about saving resources from a remote server (hence using a link or something similar), and let the browser display the "save as" dialog. The resource I want the user to be able to save is already in their local machine, as a temporary array that fills the grid they are visualizing.</p>
  
  <p>What would I need in the html and controller, using angular, to do this in a smart way?</p>
  
  <p>I hope it's an easy one for an angular guru  :)</p>
  
  <p>Thank you in advance!</p>
  
  <p>I will restate my question: is there a way to save certain file created by a web-app on the client hard drive? </p>
  
  <p>I can see there are amazing possibilities for data storage in HTML5 nowadays: a browser  can store 5M of data (or even more), it can store it for one session, or forever... so: is it really THAT difficult let the user save a file, a string, a cvs, a json... ANY of this stored information in their system, in a folder in their hard drive, if they want to?  :)</p>
  
  <p>I don't know anymore if this problem is so difficult that one can not find examples on how to do this online or if it is so easy that nobody thinks anybody will need an example on how to do it and that's the reason why one can not find them  :)</p>