Skip to content

Instantly share code, notes, and snippets.

@sionjlewis
Last active January 8, 2017 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sionjlewis/411650fe148285644f67e5edd351cf3c to your computer and use it in GitHub Desktop.
Save sionjlewis/411650fe148285644f67e5edd351cf3c to your computer and use it in GitHub Desktop.
Hello Angular World: code snippet for article (http://www.sjlewis.com). The complete source code and project files can be found here: https://github.com/sionjlewis/Hello.Angular.World
<!DOCTYPE html>
<html>
<head lang="en">
<title>My iTunes Client App Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="Content/site.css" rel="stylesheet" />
<!-- Start Angular Setup -->
<!-- 1. Load libraries -->
<link href="node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
<link href="app/app.component.css" rel="stylesheet" />
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
<!-- 3. Add the "System.import(...)" statement to the View. -->
<script>
//System.import('app').catch(function(err){ console.error(err); });
</script>
<!-- End Angular Setup -->
</head>
<body>
<header>
<div class="title">
HTML Page
</div>
</header>
<main>
<my-app class="app-content">
<div class="app-loading">
App Loading...
</div>
</my-app>
</main>
<footer>
<p class="footer">&copy; 2017 <a href="http://www.sjlewis.com" target="_blank" title="Si&ocirc;n J. Lewis">S J Lewis</a> - Hello Angular World with HTML</p>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment