-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (28 loc) · 1.29 KB
/
index.html
File metadata and controls
29 lines (28 loc) · 1.29 KB
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
26
27
28
29
<!DOCTYPE html>
<html ng-app="blog">
<head lang="en">
<title>Angular Blog</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<link rel='stylesheet' href="css/style.css">
<script type="text/javascript" src="libs/angular.min.js"></script>
<script type="text/javascript" src="libs/angular-sanitize.min.js"></script>
<script type="text/javascript" src="js/comment-box.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body class="container" ng-controller="BlogController as blog">
<h1>Random Blog</h1>
<article class="blogPost" ng-repeat="product in blog.products">
<h2>{{product.heading}}</h2>
<h3>{{product.subHeading}}</h3>
<div ng-bind-html=product.body></div>
<post-image></post-image>
<div ng-controller='CommentController as comments' class="comments">
<a href class="viewComments" ng-click="comments.toggleComments()">View Comments<span> ({{product.comments.length}})</span> </a>
<div ng-show="comments.commentsVisible(true)">
<comment-box></comment-box>
</div>
</div>
</article>
</body>
</html>