Say my json is like this:
var readyToExport = [
{id: 1, name: 'a'},
{id: 2, name: 'b'},
{id: 3, name: 'c'}
];
How can I export this JSON into CSV or Excel file in Angular2?
The browser that I'm using is Chrome.
Maybe Angular2 is not relevant, however, is there any third party plugin that can be injected in Angular2 and perform this task?
This is the right way i think... worked for me! took a json array