Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemjs and angular demos [ci skip]
closes #447 h/t @channara closes #453 h/t @Adtiv @paustint closes #538 h/t @hsbilgen closes #547 h/t @Mani2693
- Loading branch information
1 parent
9ae3a64
commit 60e8905
Showing
9 changed files
with
81 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<!-- | ||
demo from angular-js-xlsx | ||
npm: https://www.npmjs.com/package/angular-js-xlsx | ||
author: @brexis Boris Koumondji | ||
license: MIT | ||
--> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Angular Js XLS</title> | ||
</head> | ||
<body ng-app="MyApp"> | ||
<div ng-controller="myController"> | ||
<js-xls onread="read" onerror="error"></js-xls> | ||
</div> | ||
|
||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script> | ||
<!--<script type="text/javascript" src="xlsx.core.min.js"></script>--> | ||
<script type="text/javascript" src="xlsx.full.min.js"></script> | ||
<script type="text/javascript" src="//unpkg.com/angular-js-xlsx/angular-js-xlsx.js"></script> | ||
<script type="text/javascript"> | ||
angular.module('MyApp', ['angular-js-xlsx']) | ||
.controller('myController', function($scope) { | ||
$scope.read = function (workbook) { | ||
/* DO SOMETHING WITH workbook HERE */ | ||
console.log(workbook); | ||
} | ||
|
||
$scope.error = function (e) { | ||
/* DO SOMETHING WHEN ERROR IS THROWN */ | ||
console.log(e); | ||
} | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../dist/xlsx.core.min.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../dist/xlsx.full.min.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.PHONY: test | ||
test: | ||
node systemjsnode.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var XLSX_1 = require('../../xlsx.js'); | ||
var XLSX_2 = require('../../dist/xlsx.core.min.js'); | ||
var XLSX_3 = require('../../dist/xlsx.full.min.js'); | ||
var XLSX_N = require('xlsx'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
var SystemJS = require('systemjs'); | ||
SystemJS.config({ | ||
meta: { | ||
'../../xlsx.js': { format: 'global' }, | ||
'../../dist/xlsx.core.min.js': { format: 'global' }, | ||
'../../dist/xlsx.full.min.js': { format: 'global' }, | ||
}, | ||
paths: { | ||
'npm:': '/usr/local/lib/node_modules/' | ||
}, | ||
map: { | ||
'xlsx': 'npm:xlsx/xlsx.js', | ||
'fs': '@node/fs', | ||
'crypto': '@node/fs' | ||
} | ||
}); | ||
SystemJS.import('./app.js'); |
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