2015-12-10 12:40:54 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!-- #docregion -->
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<!-- #docregion base-href -->
|
|
|
|
<base href="/">
|
|
|
|
<!-- #enddocregion base-href -->
|
|
|
|
<title>Router Sample</title>
|
2016-02-03 03:35:20 -05:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2015-12-10 12:40:54 -05:00
|
|
|
<link rel="stylesheet" href="styles.css">
|
2016-01-17 22:59:34 -05:00
|
|
|
<!-- #docregion ie-cdn-polyfills -->
|
|
|
|
<!-- IE required polyfills (from CDN), in this exact order -->
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.16/system-polyfills.js"></script>
|
|
|
|
<!-- #enddocregion ie-cdn-polyfills -->
|
|
|
|
|
2015-12-15 15:14:10 -05:00
|
|
|
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
|
2015-12-10 12:40:54 -05:00
|
|
|
<script src="node_modules/systemjs/dist/system.src.js"></script>
|
2015-12-15 15:14:10 -05:00
|
|
|
<script src="node_modules/rxjs/bundles/Rx.js"></script>
|
2015-12-10 12:40:54 -05:00
|
|
|
<script src="node_modules/angular2/bundles/angular2.dev.js"></script>
|
|
|
|
<!-- #docregion router-lib -->
|
|
|
|
<script src="node_modules/angular2/bundles/router.dev.js"></script>
|
|
|
|
<!-- #enddocregion router-lib -->
|
2015-12-15 15:14:10 -05:00
|
|
|
<script>
|
|
|
|
System.config({
|
2015-12-31 23:04:22 -05:00
|
|
|
packages: {
|
2015-12-15 15:14:10 -05:00
|
|
|
app: {
|
|
|
|
format: 'register',
|
|
|
|
defaultExtension: 'js'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2016-01-28 19:15:26 -05:00
|
|
|
System.import('app/main.1') // <----- ONLY CHANGE
|
2015-12-15 15:14:10 -05:00
|
|
|
.then(null, console.error.bind(console));
|
|
|
|
</script>
|
2015-12-10 12:40:54 -05:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2015-12-31 23:04:22 -05:00
|
|
|
<h1>Milestone 1</h1>
|
2015-12-10 12:40:54 -05:00
|
|
|
<my-app>loading...</my-app>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
<!-- #enddocregion -->
|