-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (32 loc) · 1.06 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!doctype html>
<html lang="en" ng-app="app">
<head>
<meta charset="utf-8">
<title>angular-climb demo</title>
<meta name="description" content="Demo of angular-climb – a service for aggregating social media.">
<meta name="author" content="100 Shapes Ltd.">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body ng-controller="SocialWallCtrl as vm">
<ol>
<li ng-repeat="item in vm.items track by item.id">
{{ item.message }}
</li>
</ol>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="../src/component.js"></script>
<script>
var ngModule = angular.module('app', ['climb']);
ngModule.controller('SocialWallCtrl', SocialWallCtrl);
function SocialWallCtrl(ClimbFactory) {
var vm = this;
var feedId = '55a4dac845284e58ac50ee1c';
ClimbFactory.getFeed(feedId).then(function(items) {
vm.items = items;
});
}
</script>
</body>
</html>