I am using a nodeJS program as a server and an AngularJS web application as the client.
To create the CSV I\'m using the \"express-csv\" library (https://www.npmjs.c
Here I tried to make it simple. Assign all the back end records that you want to display in the file in the variable called obj. I will just say it as var obj = []. And inside the function just add the below code.
var a = document.createElement("a");
var csvContent = "Name, Address\n";
for(var i =0; i