Skip to content

Instantly share code, notes, and snippets.

@puginabox
Last active August 29, 2015 14:10
Show Gist options
  • Save puginabox/6a201ed82c99ffe0c743 to your computer and use it in GitHub Desktop.
Save puginabox/6a201ed82c99ffe0c743 to your computer and use it in GitHub Desktop.
index.html boilerplate for angularJS
<!DOCTYPE html>
<html lang="en" ng-app="myApp" ng-cloak>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- for IE Document Mode - must be at top of <head> to be cross-IE -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Xxx</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CEO upkeep-->
<meta name="keywords" content="">
<meta name="description" content="">
<!-- CEO upkeep-->
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="css/master.css">
<script src="js/behavior.js"></script>
<!--[if IE]> // making the needy IE like HTML5
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<header role="banner">
<h1>Xxx</h1><!-- hidden: for SEO purposes -->
</header>
<nav role="navigation" class="main-nav">
<ul>
<li><a href="#">one</a></li>
<li><a href="#">two</a></li>
<li><a href="#">three</a></li>
<li><a href="#">contact</a></li>
</ul>
</nav>
<section role="contentinfo" class="main-content">
<h1>Section heading</h1>
<p>Section paragraph.</p>
<article ng-view></article>
</section>
<article ng-view>
</article>
<footer role="">
<a href="#" <sup>&copy; Xxx, 2015</sup></a>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment