Reputation: 1508
i have a form with two fields one for email and another for phone. i need to append the data from these fields into a csv file, so that we can send notification to the users who have opted for notification once the website is live. how can i do this in angularjs.
i am confused about if i have to upload csv file first or how and where the csv file will be saved and all. i am UI developer and not sure if this task will be performed on frontend on backend.
my boss is saying this is supposed to be frontend job.
Upvotes: 2
Views: 1077
Reputation: 397
It is possible in angular. check out this plugin https://www.npmjs.com/package/angular2-csv. You should probably get some idea after seeing this. Otherwise you can just write a plain javascript function to write data to CSV. There are many examples.
The file gets downloaded to the default downloads folder in you PC.
Upvotes: 1