Skip to content

Commit a6d6da8

Browse files
committed
chore(deps): enable systemjs to work with moment.js
1 parent 9a25577 commit a6d6da8

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

index.html

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
11
<html>
22

33
<head>
4-
<title>Angular 2 QuickStart</title>
5-
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous">
6-
<!-- 1. Load libraries -->
7-
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
8-
<script src="node_modules/systemjs/dist/system.src.js"></script>
9-
<script src="node_modules/rxjs/bundles/Rx.js"></script>
10-
<script src="node_modules/angular2/bundles/angular2.dev.js"></script>
11-
<script src="node_modules/ng2-bootstrap/bundles/ng2-bootstrap.min.js"></script>
4+
<title>Angular 2 QuickStart</title>
5+
<link
6+
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
7+
rel="stylesheet"
8+
integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw=="
9+
crossorigin="anonymous">
10+
<!-- 1. Load libraries -->
11+
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
12+
<script src="node_modules/systemjs/dist/system.src.js"></script>
13+
<script src="node_modules/rxjs/bundles/Rx.js"></script>
14+
<script src="node_modules/angular2/bundles/angular2.dev.js"></script>
15+
<script
16+
src="node_modules/ng2-bootstrap/bundles/ng2-bootstrap.min.js"></script>
1217

13-
<!-- 2. Configure SystemJS -->
14-
<script>
15-
System.config({
16-
packages: {
17-
app: {
18-
format: 'register',
19-
defaultExtension: 'js'
20-
}
21-
}
22-
});
23-
System.import('app/boot')
24-
.then(null, console.error.bind(console));
25-
</script>
18+
<!-- 2. Configure SystemJS -->
19+
<script>
20+
System.config({
21+
packages: {
22+
app: {
23+
format: 'register',
24+
defaultExtension: 'js'
25+
}
26+
},
27+
map: {
28+
moment: 'node_modules/moment/moment.js'
29+
}
30+
});
31+
System.import('app/boot')
32+
.then(null, console.error.bind(console));
33+
</script>
2634

2735
</head>
2836

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
},
1010
"license": "ISC",
1111
"dependencies": {
12-
"angular2": "2.0.0-beta.0",
12+
"angular2": "2.0.0-beta.3",
1313
"es6-promise": "^3.0.2",
1414
"es6-shim": "^0.33.3",
1515
"ng2-bootstrap": "1.0.1-beta.2",
1616
"reflect-metadata": "0.1.2",
1717
"rxjs": "5.0.0-beta.0",
18-
"systemjs": "0.19.6",
18+
"systemjs": "0.19.20",
1919
"zone.js": "0.5.10"
2020
},
2121
"devDependencies": {
22-
"concurrently": "^1.0.0",
23-
"lite-server": "^1.3.1",
24-
"typescript": "^1.7.3"
22+
"concurrently": "1.0.0",
23+
"lite-server": "2.0.1",
24+
"typescript": "1.7.5"
2525
}
2626
}

0 commit comments

Comments
 (0)