Skip to content

Instantly share code, notes, and snippets.

@sionjlewis
Last active January 8, 2017 13:03
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/7dce0f8990bb27a9625551b79b63cb7c to your computer and use it in GitHub Desktop.
Save sionjlewis/7dce0f8990bb27a9625551b79b63cb7c 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
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section title{
MVC Page
}
<!-- Start Angular Setup -->
<!-- 3. Add the "System.import(...)" statement to the View. -->
<script>
System.import('app').catch(function (err) {
console.error(err);
});
</script>
<!-- End Angular Setup -->
<my-app class="app-content">
<div class="app-loading">
App loading...
</div>
</my-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment