I am trying to use the event onValueChange
, according to the PrimeNG documentation, but it does not work.
View
<p-calendar (onValueChange)="changeFechaFinEstimada()" [(ngModel)]="empleado.fechaFinEstimada" [locale]="es" dateFormat="dd-mm-yy"
[showIcon]="true" name="fechaFinEstimada" id="field_caducidad" [monthNavigator]="true" [yearNavigator]="true"
yearRange="2018:2030"></p-calendar>
Controller
changeFechaFinEstimada() {
console.log(empleado);
}