I need to get data to export to an xlsx file from an angular2 application that is in development.
Maybe I am really just looking for help getting a couple of libraries to load. A couple of things I've found are this jsfiddle and this stackoverflow. I'd like to get something like this working, in angular2. Any attempts to get alasql to work have been met with errors stating it's not a module and such. Trying to follow approaches listed on various blogs, such as this one result in errors like "cannot read property 'compile' of undefined"
In the previously mentioned jsfiddle is an example of what I'd like to get working:
var res = alasql('SELECT INTO XLSX("MyAwesomeData.xlsx",?) FROM ?',[opts,[data1,data2]]);
I'm open to other tools, but the above would work for me -- if I could get it to work with angular2.