-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.html
More file actions
22 lines (22 loc) · 732 Bytes
/
posts.html
File metadata and controls
22 lines (22 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<title>Mean Stack</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.18/angular.js"></script>
<script src="/app/"></script>
</head>
<body ng-app="app">
<div ng-controller="PostsCtrl" class="container">
<h1>Recent Posts</h1>
<button ng-click="addPost()" class="btn btn-default"> Add Post </button>
<input ng-model="postBody" class="form-control" />
<ul class="list-group">
<li ng-repeat="post in posts | orderBy: '-date'" class="list-group-item">
<strong>@{{ post.username }}</strong>
<span>{{ post.body }}</span>
</li>
</ul>
</div>
</body>
</html>