-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
34 lines (28 loc) · 1.12 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
<html ng-app="repeatApp">
<head>
<title>
Angular vs-repeat
</title>
<link rel="stylesheet" href="animate.css">
<link rel="stylesheet" href="style.css">
</head>
<body ng-controller="indexCtrl">
<div class="menu">
<ul class="btn">
<li ng-class="!viewConfig.tileView ? 'active':''" ng-click="changeLayout(CONSTANTS.LIST)"> List View </li>
<li ng-class="viewConfig.tileView ? 'active':''" ng-click="changeLayout(CONSTANTS.TILE)"> Tile View </li>
</ul>
</div>
{{tileView}}
<div class="container">
<!-- If needed fixed number of element on a row : vs-element-on-row="3" -->
<div class="items" ng-class="!viewConfig.tileView ? 'listView':''" vs-repeat vs-tile-view='{{viewConfig.tileView}}' vs-animation-enable="true" vs-autoresize="true" >
<div class="item" ng-repeat="data in dataSet" ng-bind="data"></div>
</div>
</div>
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="angular-vs-repeat.js"></script>
<script type="text/javascript" src="index-ctrl.js"></script>
</body>
</html>