Created
April 2, 2016 15:17
-
-
Save sidthesloth92/9b1ec0d30ebe6a5d5ea9a895763fab14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Angular 2 Basics - Routing</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<base href="/"> | |
<!-- 1. Load libraries --> | |
<!-- IE required polyfills, in this exact order --> | |
<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/angular2/es6/dev/src/testing/shims_for_IE.js"></script> | |
<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> | |
<script src="node_modules/angular2/bundles/router.dev.js"></script> | |
<!-- 2. Configure SystemJS --> | |
<script> | |
System.config({ | |
packages: { | |
app: { | |
format: 'register', | |
defaultExtension: 'js' | |
} | |
} | |
}); | |
System.import('app/main') | |
.then(null, console.error.bind(console)); | |
</script> | |
</head> | |
<!-- 3. Display the application --> | |
<body> | |
<my-app>Loading...</my-app> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment