Skip to content

Commit f1cfdaa

Browse files
committed
Renamed start and end datetime variables for readability.
1 parent 1b87261 commit f1cfdaa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body ng-controller="MainCtrl">
1919

20-
<datetime-range start="start_datetime" end="end_datetime" handler="print(start_datetime, end_datetime)"></datetime-range>
20+
<datetime-range start="start" end="end" handler="print(start, end)"></datetime-range>
2121

2222
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.0/angular.min.js" charset="utf-8"></script>
2323
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment.min.js" charset="utf-8"></script>
@@ -26,11 +26,11 @@
2626
<script>
2727
angular.module('ExampleApp', ['g1b.datetime-range']).
2828
controller('MainCtrl', function ($scope) {
29-
$scope.start_datetime = moment();
30-
$scope.end_datetime = moment().add(1, 'days').add(1, 'hours');
31-
$scope.print = function (start_datetime, end_datetime) {
32-
console.log('start', start_datetime);
33-
console.log('end', end_datetime);
29+
$scope.start = moment();
30+
$scope.end = moment().add(1, 'days').add(1, 'hours');
31+
$scope.print = function (start, end) {
32+
console.log('start', start);
33+
console.log('end', end);
3434
};
3535
});
3636
</script>

0 commit comments

Comments
 (0)