I'm looking for a way to bind my number property to an time input. I want to do that because my model properties must only be type number. I would like to convert the time value to seconds with a binding. I tried this code:
<input type="time" step="1" [ngModel]="value.value | timeToNumber" (ngModelChange)="value.value = $event">
My timeToNumber pipe convert string "HH:mm:ss" to seconds. But it doesn't works because the input cannot accept number type. How can I manage to do that ?