Skip to content

Instantly share code, notes, and snippets.

@pankajpatel
Last active August 29, 2015 14:23
Show Gist options
  • Save pankajpatel/d31af672fd86e1d16d2d to your computer and use it in GitHub Desktop.
Save pankajpatel/d31af672fd86e1d16d2d to your computer and use it in GitHub Desktop.
Index file for contact store application
<!DOCTYPE html>
<html ng-app="contactApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Time to Hack: Single Page Applications with Routing in AngularJS</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<style type="text/css">
.contacts p, .contacts p.lead{ margin: 0; }
.header-actions{ display: block; margin: 20px 0 10px 0; }
.contacts li .actions{ display: none; }
.contacts li:hover{ background-color: #efefef; }
.contacts li:hover .actions{ display: block; }
</style>
</head>
<body>
<div class="container">
<span class="header-actions pull-right">
<a href="#add" class="btn btn-primary">Add Contact</a>
<a href="#contacts" class="btn btn-primary">Contacts</a>
</span>
<h1>Contact Store Application</h1>
<hr/>
<div ng-view><!-- All the views/partials will be here --></div>
<p class="text-center">
<a href="http://time2hack.com/2015/06/single-page-applications-with-routing-in-angularjs.html">
<small>Single Page Applications with Routing in AngularJS</small></a></p>
</div>
<hr/>
<!-- AngularJS -->
<script src="https://code.angularjs.org/1.3.15/angular.min.js"></script>
<!-- AngularJS Router-->
<script src="https://code.angularjs.org/1.3.15/angular-route.min.js"></script>
<!-- Contacts Store JavaScript -->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment