This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Change datetime individual #6666
Closed
Description
When a date object is bound to date/time/week/month and the value is updated via one of these input controls then the date object is reset to the beginning of time.
app.controller('MainCtrl', function($scope) {
$scope.date = new Date();
});
<input type="date" ng-model="date">
<input type="time" ng-model="date">
<input type="week" ng-model="date">
<input type="month" ng-model="date">
<input type="datetime-local" ng-model="date">
Change the date/time/week and you'll see that it resets.