File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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 >
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 >
You can’t perform that action at this time.
0 commit comments