duplicates = multiple editions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// bower install js-xlsx | |
// in controller | |
$scope.saveAsXlsx = function() { | |
let data = [['a', 'b', 'c', 'd', 'e'], [1, 2, 3, 4, 5]]; | |
// create an excel worksheet from an array of arrays (aoa) of survey data | |
let worksheet1 = XLSX.utils.aoa_to_sheet(data); | |
// instantiate new excel workbook | |
let workbook = XLSX.utils.book_new(); |