I have an angular an input like this:
<input [ngModel]="pedido.fecha | date:'yyyy-MM-dd' : 'UTC'" placeholder="fecha" #fecha type="date">
when loading the page, the input is correctly filled with the date that comes from the object pedido.fecha
, however if I select a date by opening the datepicker the value pedido.fecha
is still the original and not the one I have selected in the datepicker, this makes that when I update the data, I load the initial date, never the one I edited.