forked from microsoft/TypeScriptSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
23 lines (23 loc) · 708 Bytes
/
index.html
File metadata and controls
23 lines (23 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<title>SystemJS/TypeScript Sample</title>
<link rel="stylesheet" href="app.css" type="text/css" />
<script src="node_modules/systemjs/dist/system.js"></script>
</head>
<body>
<script>
System.transpiler = 'typescript';
System.meta['typescript'] = { format: 'global', exports: 'ts' };
System.paths = {
'*': '*.ts',
'typescript': 'node_modules/typescript/bin/typescript.js'
}
System.import('app').then(function(m) {
var element = document.getElementById("content");
m.main(element);
});
</script>
<h1>SystemJS/TypeScript Sample</h1>
<div id="content"></div>
</body>
</html>