I want to bind angular timepicker and datepicker. I am using Angular boot library
According to the timepicker documentation, an object is required new Datefor the min and max values. If I just install this
var d = new Date();
d.setHours( 2 );
d.setMinutes( 0 );
$scope.minTime = d;
var d = new Date();
d.setHours( 11 );
d.setMinutes( 0 );
$scope.maxTime = d;
<uib-timepicker ng-model="mytime" min="min" max="max" show-meridian="false" min="minTime" max="maxTime"></uib-timepicker>
This only works for today because of the facility new Date().
I want it to work on any day that I choose. Currently, the timepicker does not limit time as needed. In addition, sometimes the borders of the boxes with the timer turn red (this may be due to verification errors), but does not indicate what exactly is the error.
Please take a look at:
http://plnkr.co/edit/LOZ9T6zexRkQpqSIaJiA?p=preview