Angular read csv and upload to Server

example

// Angular .csv reader

https://alberthaff.dk/projects/ngx-papaparse/docs/v7/introduction

npm install ngx-papaparse@7 --save  //Angular 15+   ngx-papaparse@7.0.0
npm install ngx-papaparse@8 --save  //Angular 16+


angular.json

"build": {
    "builder": "@angular-devkit/build-angular:browser",
    "options": {
        "allowedCommonJsDependencies": [
            "papaparse"              <<<<<< add this line
        ],
        ...
    }
}


import { Papa } from 'ngx-papaparse';

constructor(
   private papa: Papa
 )

Last updated

Was this helpful?