49 lines
1.4 KiB
HTML
49 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<!-- #docregion -->
|
|
<html>
|
|
<head>
|
|
<!-- Set the base href -->
|
|
<!-- #docregion base-href -->
|
|
<base href="/">
|
|
<!-- #enddocregion base-href -->
|
|
|
|
<title>Router Sample</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
|
|
<!-- #docregion ie-polyfills -->
|
|
<!-- IE required polyfills, in this exact order -->
|
|
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
|
|
<script src="node_modules/systemjs/distsystem-polyfills.js"></script>
|
|
<!-- #enddocregion ie-polyfills -->
|
|
|
|
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
|
|
<script src="node_modules/systemjs/dist/system.src.js"></script>
|
|
<script src="node_modules/rxjs/bundles/Rx.js"></script>
|
|
<script src="node_modules/angular2/bundles/angular2.dev.js"></script>
|
|
|
|
<!-- Add the router library -->
|
|
<!-- #docregion router-lib -->
|
|
<script src="node_modules/angular2/bundles/router.dev.js"></script>
|
|
<!-- #enddocregion router-lib -->
|
|
|
|
<script>
|
|
System.config({
|
|
packages: {
|
|
app: {
|
|
format: 'register',
|
|
defaultExtension: 'js'
|
|
}
|
|
}
|
|
});
|
|
System.import('app/boot')
|
|
.then(null, console.error.bind(console));
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<my-app>loading...</my-app>
|
|
</body>
|
|
|
|
</html>
|
|
<!-- #enddocregion -->
|