Here is the HTML code snippet that I've written:
<input type="text" name="fechainscripcion" #fechainscripcion="ngModel" [(ngModel)]="alumno.fechainscripcion" value="{{today | date:'dd/MM/yyyy'}}" class="form-control" />
This is a segment of my component code:
this.today = Date.now();
this.title = 'Añadir';
this.alumno = new Alumno('','','','','','',null,'','','Alta');
Currently, the fechainscripcion value in the alumno array is set to null. However, I am aiming to display the value "{{today | date:'dd/MM/yyyy'}}" within the input field.