title: Workbook is not defined in js-xlsx
body: <p>I use <a href="https://github.com/SheetJS/js-xlsx" rel="nofollow noreferrer">Js-xlsx</a> API to export data into .xlsx file.I have tried to write a sample code using AngularJs and i couldn't achieve it.It throws <code>Workbook is not defined</code>.I refer the wiki but i couldn't find it.Please help me anyone knows how to write to a list of data into .xlsx file using Js-xlsx.</p>
  
  <p>Code snippet,</p>
  
  <p><strong>HTML</strong> </p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.2/xlsx.core.min.js"&gt;&lt;/script&gt;
  
  ...
  
  &lt;button ng-click="ExportData()"&gt;Export&lt;button&gt;
  </code></pre>
  
  <p><strong>AngularJs Controller</strong></p>
  
  <pre><code>$scope.ExportData= function(){
  
  var workbook=new Workbook();// throws not defined
  $scope.dataArrayForExportCsv=[ {userName:data.userName, age:data.age} ];
  workbook = sheet_from_array_of_arrays($scope.dataArrayForExportCsv);
  XLSX.writeFile(workbook, 'sample.xlsx');
  }
  </code></pre>