I have an angular project in which I have successfully applied the sorting with the mat table what I want to do is that I want to download the data as a json object after sorting. Is that possible to do the same? If so how can i do the same?
You can use this library mat-table-exporter it will help you in exporting the data from the material table in CSV, Excel, TXT, and JSON formats. Install it using:
npm i mat-table-exporter