I want to export data of two different arrays in a single excel document. The data of two different arrays should be exported in two different sheets.
$scope.details= {
"boys": [
{"name":"Jeet", "age":25},
{"name":"John", "age":24}
],
"girls":[
{"name":"Gita", "age":25},
{"name":"Sima", "age":24}
]
}
Now if I write
alasql('SELECT * INTO XLSX("Details.xlsx",{headers:true}) FROM ?',[$scope.details.boys]);
It will export the details of boys only in the excel sheet. How do I export for both boys and girls in a single excel document in two different sheets? Thanks in advance.