Skip to content

Instantly share code, notes, and snippets.

@rolaveric
Last active August 29, 2015 14:13
Show Gist options
  • Save rolaveric/f1c3841027fa7e1b4374 to your computer and use it in GitHub Desktop.
Save rolaveric/f1c3841027fa7e1b4374 to your computer and use it in GitHub Desktop.
HTML for loading modules through SystemJS asynchronously
<script src="bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script>
<script src="bower_components/traceur/traceur.js"></script>
<script src="bower_components/es6-module-loader/dist/es6-module-loader.js"></script>
<script src="bower_components/system.js/dist/system.js"></script>
<script src="system.config.js"></script>
<script>
System.import('app').then(function() {
angular.bootstrap(document, ['myApp']);
});
</script>
<title>My AngularJS App</title>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment