forked from sspranay/angular2-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (48 loc) · 2.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<html>
<head>
<title>Angular 2 QuickStart</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<!-- 1. Load libraries -->
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
<script src="node_modules/systemjs/dist/system-polyfills.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.js"></script>
<script src="node_modules/rxjs/bundles/Rx.min.js"></script>
<script src="node_modules/ng2-bootstrap/bundles/ng2-bootstrap.min.js"></script>
<!-- 2. Configure SystemJS -->
<script>
System.config({
packages: {
app: {
format: 'register',
defaultExtension: 'js'
},
'node_modules/ng2-file-upload': {
format: 'cjs',
defaultExtension: 'js'
}
},
map: {
'ng2-file-upload': 'node_modules/ng2-file-upload/ng2-file-upload.js',
moment: 'node_modules/moment/moment.js',
"@angular/core": "node_modules/@angular/core/core.umd.js",
"@angular/common": "node_modules/@angular/common/common.umd.js",
"@angular/compiler": "node_modules/@angular/compiler/compiler.umd.js",
"@angular/platform-browser": "node_modules/@angular/platform-browser/platform-browser.umd.js",
"@angular/platform-browser-dynamic": "node_modules/@angular/platform-browser-dynamic/platform-browser-dynamic.umd.js",
// ng2-bootstrap specifics
"@angular/core/src/facade/lang": "node_modules/@angular/core/src/facade/lang.js",
// "@angular/platform-browser/src/animate/animation_builder": "node_modules/@angular/platform-browser/src/animate/animation_builder.js"
}
});
System.import('/node_modules/ng2-file-upload/ng2-file-upload').then(function(){
System.import('app/boot');
}, console.error.bind(console));
</script>
</head>
<!-- 3. Display the application -->
<body>
<my-app>Loading...</my-app>
</body>
</html>