PapaParse with Angular JS

后端 未结 4 593
我寻月下人不归
我寻月下人不归 2021-02-11 02:39

Liked the nice CSV parser & unparser of PapaParse. Can any one help me to get this combine with Angular JS.

I like to make PapaParse work in Angular Way. Trying for

4条回答
  •  情深已故
    2021-02-11 02:49

    I actually didn't do anything fancy to load it. Just add it to html file and to my lib folder. In my case: /lib/papaparse.min.js

    and to index.html. As usual script:

    
    

    then I just used it in my Controller:

    Papa.parse(data, {
        complete: function(results) {
            console.log("Finished:", results.data);
        }
    });
    

提交回复
热议问题