-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
25 lines (22 loc) · 1.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html ng-app="testApp">
<head>
<link rel="stylesheet" href="css/bootstrap.css" />
</head>
<body ng-controller="TestCtrl">
<form novalidate ng-submit="addPerson()">
<input type="text" ng-model="person.firstName"/>
<input type="text" ng-model="person.lastName"/>
<button>Add Me!</button>
</form>
<input type="text" ng-model="nameQuery" />
<h1>{{ "Hello" + " " + person.firstName + " " + person.lastName + "!" }}</h1>
<div ui-sortable ng-model="people">
<div class="name" ng-repeat="person in people | orderBy: '-likes'">{{person.firstName + " " + person.lastName}} | Likes: {{person.likes}} | <button ng-click="addLike()">Like!</button> | <a ng-click="removePerson()">remove</a></div>
</div>
<!--
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
-->
<script type="text/javascript" src="http://cdn.jsdelivr.net/g/jquery@1,[email protected]%28jquery.ui.core.min.js+jquery.ui.widget.min.js+jquery.ui.mouse.min.js+jquery.ui.sortable.min.js%29,[email protected],angular.ui-sortable"></script>
<script type="text/javascript" src="app.js"></script>
</body>
</html>