Skip to content

Instantly share code, notes, and snippets.

@tario
Created June 13, 2014 18:25
Show Gist options
  • Save tario/f07239992eea75535421 to your computer and use it in GitHub Desktop.
Save tario/f07239992eea75535421 to your computer and use it in GitHub Desktop.
index.html
<!doctype html>
<html lang="en" ng-app="phonecatApp">
<head>
<meta charset="utf-8">
<title>Google Phone Gallery</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="css/app.css">
<script src="bower_components/angular/angular.js"></script>
<script src="js/controllers.js"></script>
</head>
<body ng-controller="PhoneListCtrl">
<div class="container-fluid">
<div class="row">
<div class="col-md-2">
<!--Sidebar content-->
Search: <input ng-model="query">
Sort by:
<select ng-model="orderProp">
<option value="name">Alphabetical</option>
<option value="age">Newest</option>
</select>
Uppercase:
<input type="checkbox" ng-model="uppercaseEnabled"></input>
</div>
<div class="col-md-10">
<!--Body content-->
<p>Ordering by {{orderProp}}</p>
<ul class="phones">
<li ng-repeat="phone in phones | filter:query | orderBy:orderProp | uppercaseAllThings:uppercaseEnabled">
<span>{{phone.name}}</span>
<p>{{phone.snippet}}</p>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment