-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (34 loc) · 989 Bytes
/
Copy pathindex.html
File metadata and controls
35 lines (34 loc) · 989 Bytes
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
<!DOCTYPE html>
<html ng-app="date_app">
<head>
<title>Angular Date Select Example</title>
<script src="lib/jquery.min.js"></script>
<script src="lib/angular.min.js"></script>
<script src="app.js"></script>
<script src="dateselect.js"></script>
</head>
<body>
<!-- Multiple DateSelect examples -->
<div ng-controller="FirstController">
<h2>First Controller</h2>
<date-select set-fn="setDateFn(dateGetFn)">
</date-select>
<button ng-click="setDate()">Get First Date</button>
The date is {{firstDate}}
<br><br>
<date-select set-fn="setSecondDateFn(dateGetFn)"
min-year="2014"
max-year="2017">
</date-select>
<button ng-click="setSecondDate()">Get Second Date</button>
The date is {{secondDate}}
</div>
<div ng-controller="SecondController">
<h2>Second Controller</h2>
<date-select set-fn="setThirdDateFn(dateGetFn)">
</date-select>
<button ng-click="setThirdDate()">Get Third Date</button>
The date is {{thirdDate}}
</div>
</body>
</html>