File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2020< body ng-controller ="MainCtrl ">
2121
2222 < h1 > Date</ h1 >
23- < date-input date ="now " on-change ="print(now) "> </ date-input >
23+ < date-input date ="now " placeholder =" Click Me " on-change ="print(now) "> </ date-input >
2424
2525 < h1 > Time</ h1 >
26- < time-input time ="now " on-change ="print(now) "> </ time-input >
26+ < time-input time ="now " placeholder =" Click Me " on-change ="print(now) "> </ time-input >
2727
2828 < h1 > Datetime</ h1 >
29- < datetime-input datetime ="now " on-change ="print(now) "> </ datetime-input >
29+ < datetime-input datetime ="now " placeholder =" Click Me " on-change ="print(now) "> </ datetime-input >
3030
3131 < script src ="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.0/angular.min.js " charset ="utf-8 "> </ script >
3232 < script src ="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment.min.js " charset ="utf-8 "> </ script >
@@ -35,7 +35,6 @@ <h1>Datetime</h1>
3535 < script >
3636 angular . module ( 'ExampleApp' , [ 'g1b.datetime-input' ] ) .
3737 controller ( 'MainCtrl' , function ( $scope ) {
38- $scope . now = moment ( ) ;
3938 $scope . print = function ( datetime ) {
4039 console . log ( 'datetime' , datetime ) ;
4140 } ;
You can’t perform that action at this time.
0 commit comments