Preserve time when selecting a date using the datepicker
The mdDatepicker directive resets the time when selected. It would be useful if this would be preserved on a form where a user may select an entire datetime. This is also how an <input type="date"/> element works.
The following example allows setting the date and time using the input fields. When the mdDatepicker is used, the time is reset.
<md-datepicker ng-model="vm.datetime"></md-datepicker>
<md-input-container md-no-float>
<md-icon md-font-icon="mdi-clock"></md-icon>
<input type="date" ng-model="vm.datetime" aria-label="Time"/>
</md-input-container>
<md-input-container md-no-float>
<md-icon md-font-icon="mdi-clock"></md-icon>
<input type="time" ng-model="vm.datetime" aria-label="Time"/>
</md-input-container>
{{vm.datetime}}
+1
+1
+1
+1
+1
Why was this deprecated? it's clearly bad behavior and makes for a lot of repeated (and annoying) code
At least some kind of explanation would be nice