-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
39 lines (28 loc) · 807 Bytes
/
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
<html ng-app="ExampleApp" ng-strict-di>
<head>
<title>angular-gridify</title>
<link rel="stylesheet" type="text/css" href="example/styles.css">
</head>
<body ng-controller="ExampleCtrl as ctrl" ng-keypress="ctrl.generateItems()">
<hj-gridify
hj-gridify-options="{
collection: ctrl.items,
perRow: ctrl.perRow,
averageRatio: 1.5,
gutter: 10,
}"
hj-gridify-item-as="tile"
>
<div
ng-click="ctrl.removeItem($index)"
class="item"
ng-style="{
'background-color': tile.color,
}"
></div>
</hj-gridify>
<script type="text/javascript" src="bower_components/angular/angular.min.js"></script>
<script type="text/javascript" src="angular-gridify.js"></script>
<script type="text/javascript" src="example/app.js"></script>
</body>
</html>