2015-12-10 12:40:54 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!-- #docregion -->
|
|
|
|
<html>
|
|
|
|
<head>
|
2016-01-04 12:40:38 -05:00
|
|
|
<!-- Set the base href -->
|
|
|
|
<!-- #docregion base-href -->
|
2015-12-10 12:40:54 -05:00
|
|
|
<base href="/">
|
|
|
|
<!-- #enddocregion base-href -->
|
2016-01-04 12:40:38 -05:00
|
|
|
|
2015-12-10 12:40:54 -05:00
|
|
|
<title>Router Sample</title>
|
|
|
|
<link rel="stylesheet" href="styles.css">
|
2016-01-17 18:02:15 -05:00
|
|
|
|
|
|
|
<!-- #docregion ie-polyfills -->
|
|
|
|
<!-- IE required polyfills, in this exact order -->
|
|
|
|
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
|
2016-01-17 22:59:34 -05:00
|
|
|
<script src="node_modules/systemjs/dist/system-polyfills.js"></script>
|
|
|
|
<!-- #enddocregion ie-polyfills -->
|
2016-01-17 18:02:15 -05:00
|
|
|
|
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>
|
2016-01-04 12:40:38 -05:00
|
|
|
|
|
|
|
<!-- Add the router library -->
|
2015-12-10 12:40:54 -05:00
|
|
|
<!-- #docregion router-lib -->
|
|
|
|
<script src="node_modules/angular2/bundles/router.dev.js"></script>
|
|
|
|
<!-- #enddocregion router-lib -->
|
2016-01-04 12:40:38 -05:00
|
|
|
|
2015-12-10 12:40:54 -05:00
|
|
|
<script>
|
|
|
|
System.config({
|
2015-12-15 15:14:10 -05:00
|
|
|
packages: {
|
|
|
|
app: {
|
|
|
|
format: 'register',
|
|
|
|
defaultExtension: 'js'
|
|
|
|
}
|
|
|
|
}
|
2015-12-10 12:40:54 -05:00
|
|
|
});
|
2016-01-28 19:15:26 -05:00
|
|
|
System.import('app/main')
|
2015-12-15 15:14:10 -05:00
|
|
|
.then(null, console.error.bind(console));
|
2015-12-10 12:40:54 -05:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<my-app>loading...</my-app>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
<!-- #enddocregion -->
|