Skip to content

Commit

Permalink
ajout de validateurs pour le solde du compte epargne
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0thilde committed May 26, 2018
1 parent 7426b18 commit 610d72a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class CompteEpargneFormComponent implements OnInit {

buildForm() {
this.compteEpargneForm = this.formBuilder.group({
solde: [this.currentCompteEpargne.solde],
solde: [this.currentCompteEpargne.solde,Validators.pattern('^[0-9]+\\.?[0-9]*$')],
tauxRemun: [this.currentCompteEpargne.tauxRemun, [Validators.max(100), Validators.pattern('^[0-9]+\\.?[0-9]*$')]]
});
}
Expand Down

0 comments on commit 610d72a

Please sign in to comment.