ng model et comment code
This commit is contained in:
parent
4ccbbf869b
commit
ad43314632
@ -24,6 +24,7 @@ export class FicheContactComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
// supprime le contact
|
||||
onClickDelete(numPerson: number){
|
||||
window.alert("Le contact à bien été supprimé!")
|
||||
this.clickDelete.emit(numPerson);
|
||||
|
@ -63,7 +63,7 @@ export class PageAjoutContactComponent implements OnInit {
|
||||
email: emailValue,
|
||||
dateNaissance: dateNaissanceValue,
|
||||
adresse: adresseValue,
|
||||
team: { id: teamId }, // changer l'id quand la personne est logé => recuperer l'id de la team du membre
|
||||
team: { id: teamId },
|
||||
};
|
||||
|
||||
if (contact.nom !== '') {
|
||||
|
@ -11,7 +11,8 @@
|
||||
|
||||
<div class="form-floating">
|
||||
<input type="color" class="form-control" id="floatingInputcouleur" placeholder="" name="couleur"
|
||||
formControlName="couleurFc" value= "{{ listContactInfo.couleur }}">
|
||||
formControlName="couleurFc" value= "{{ listContactInfo.couleur }}"
|
||||
[(ngModel)]="listContactInfo.couleur">
|
||||
</div>
|
||||
|
||||
<div class="form-floating">
|
||||
@ -83,7 +84,7 @@
|
||||
|
||||
<button class="w-100 btn btn-lg btn-secondary"
|
||||
type="submit"
|
||||
[disabled]="modifContactForm.invalid">Valider</button>
|
||||
>Valider</button>
|
||||
|
||||
</form>
|
||||
</main>
|
||||
|
Loading…
Reference in New Issue
Block a user