lundi 28 janvier 2019

Angular, button validation work in the wrong order

i have one checkbox in angular 7

when I refresh my page, the good value is here

but when I click the checkbox, the value is the wrong one

there is my code in my html :

<input type="checkbox" [(ngModel)]=material.validated (click)="updateValidation(material)">

in my ts :

public updateValidation(material: any) {
    this.requestService.updateVersionQuotation(this.quotationId, this.versionId, this.quotation);
}




Aucun commentaire:

Enregistrer un commentaire