According to the input of Docs [time]: https://docs.angularjs.org/api/ng/input/input%5Btime%5D
this should be enough to use the input time type and bind it to a date object, however this will not work as I expected.
<input ng-model="time" type="time" placeholder="HH:mm" min="08:00" max="17:00" required >
and
$scope.time = new Date();
As a result, I would like to see only HH: mm in the input field.
Here is the jsfiddle to play with:
http://jsfiddle.net/U3pVM/7314/
source
share