-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (28 loc) · 1023 Bytes
/
Copy pathindex.html
File metadata and controls
34 lines (28 loc) · 1023 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
<!DOCTYPE html>
<html data-ng-app="app">
<head>
<title>Angular Directive for Xdan's Datetimepicker</title>
<link rel="stylesheet" href="bower_components/datetimepicker/jquery.datetimepicker.css">
</head>
<body>
<div id="webpage" data-ng-controller="MyController">
<h1>Angular Directive for Xdan's Datetimepicker</h1>
<span data-xdan-datetimepicker="{timepicker:false}" data-ng-model="the_date"></span>
{{ the_date }}
</div>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/datetimepicker/jquery.datetimepicker.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="datetimepicker.js"></script>
<script>
var app = angular.module('app', ['xdan.datetimepicker']);
app.controller('MyController', ['$scope', function($scope) {
$scope.the_date = new Date();
$scope.init = function(results) {
console.log('Entering My Controller');
};
$scope.init();
}]);
</script>
</body>
</html>