here i unable to solve a issue i am having table with 2 columns in the second column a button will be placed and on that button click the data from the column send to a URL as param and it will call the server and download the data into array now can i export that data into text file
After clicking on the update button it will take the firstname as call a service url and i am getting the data in the
this.service.update(firstname).subscribe(res => {
console.log(res);
}, error => {
console.log(error);
});
now how can i export this res data to the text file
The response data has to be exported to textfile so that user can open that textfile and view data