My problem is simple (I hope) but not too well documented (or I am a bad researcher).
I am developing a web service using angular and slickgrid.
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
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).
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.
What would I need in the html and controller, using angular, to do this in a smart way?
I hope it's an easy one for an angular guru :)
Thank you in advance!
I will restate my question: is there a way to save certain file created by a web-app on the client hard drive?
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? :)
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 :)