Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 28987fa

Browse files
committed
Resetted example code, linted
1 parent f7354c6 commit 28987fa

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

assets/js/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,4 @@
77
'ngRoute',
88
'720kb.datepicker'
99
]);
10-
11-
// Setup interpolation to use [[ / ]]
12-
app.config(function($interpolateProvider) {
13-
// Setup angular to use [[ expression ]] instead of {{ expression }}
14-
$interpolateProvider.startSymbol('[[').endSymbol(']]');
15-
});
1610
}(angular));

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" type="text/css" href="http://720kb.github.io/csshelper/assets/ext/src/helper.css">
77
<link rel="stylesheet" type="text/css" href="src/css/angular-datepicker.css">
88
<style>
9-
input[type="text"] {
9+
input{type="text"] {
1010
border: 2px solid grey;
1111
}
1212
*:focus{
@@ -22,7 +22,7 @@
2222
<div datepicker>
2323
<input ng-model="date1" type="text" class="angular-datepicker-input"/>
2424
</div>
25-
Date 1 is: [[date1]]
25+
Date 1 is: {{date1}}
2626
</div>
2727
<div class="col3">
2828
<div class="datepicker"
@@ -33,13 +33,13 @@
3333
button-next='<i class="fa fa-arrow-circle-right"></i>'>
3434
<input ng-model="date2" type="text" class="angular-datepicker-input"/>
3535
</div>
36-
Date 2 is: [[date2]]
36+
Date 2 is: {{date2}}
3737
</div>
3838
<div class="col3">
3939
<datepicker>
4040
<input ng-model="date3" type="text" class="angular-datepicker-input"/>
4141
</datepicker>
42-
Date 3 is: [[date3]]
42+
Date 3 is: {{date3}}
4343
</div>
4444
</div>
4545
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js"></script>

src/js/angular-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
$scope.monthNumber += 1;
208208
}
209209
//set next month
210-
$scope.month = $filter('date')(new Date($scope.year, $scope.monthNumber - 1), 'MMMM');
210+
$scope.month = $filter('date')(new Date($scope.year, $scope.monthNumber - 1), 'MMMM');
211211
//reinit days
212212
$scope.setDaysInMonth($scope.monthNumber, $scope.year);
213213

0 commit comments

Comments
 (0)