Merge pull request #83 from AlineRinquin/aline
ng model et comment code
This commit is contained in:
		
						commit
						8701849cde
					
				
					 3 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		
		Reference in a new issue