<!DOCTYPE html>

<html ng-app="ngApp">
<body ng-controller="MyController">
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2014-11-29/FileSaver.min.js"></script>
<script src="../bower_components/js-xlsx/dist/xlsx.full.min.js"></script>
<script src="../angular-xlsx.js"></script>
<script>

angular.module("ngApp", ["ngXlsx"]).controller("MyController", function(ngXlsx){
	var result = ngXlsx.writeXslx([
		{
			sheetName: "testSheet",
			columnDefs: [
				{field: "colB", displayName: "Column B"}
			],
			data: [
				{colB: 1},
				{colB: "2"},
				{colB: true}
			]
		}
		]);

	/* the saveAs call downloads a file on the local machine */
	saveAs(new Blob([s2ab(result)],{type:"application/octet-stream"}), "test.xlsx");
});



		function s2ab(s) {
  var buf = new ArrayBuffer(s.length);
  var view = new Uint8Array(buf);
  for (var i=0; i!=s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF;
  return buf;
}



</script>
</body>
</html>
Add example file, and detect cell type. Fix problems in range calculation
Add example file, and detect cell type. Fix problems in range calculation
