Sunday, 15 September 2013

angularjs: download REST API response as CSV file -


I have a restore API whose response is json (array of objects).

I would like to provide buttons like "Download button in CSV" in my view and when the user clicks on the link CSV file it should be downloaded with values ​​separated with commas.

What is the best way to achieve this in angles?

See this Bela (not author) :

< P>

You can either apply directly to your server side, or alternatively on your server side with a new API call to get the CSV file directly.


No comments:

Post a Comment