lundi 6 février 2017

How to validate Emails in Ionic 2

currently im working on a Registration form. The validation of the different inputs works fine so far. But there is a problem with the Validation of the Email. I´ve read that type="email" would check the string automatically, but it seems like that every string is valid. Thatswhy i tried to use different patterns, but sadly i couldnt find good working ones. I´ve also heard, thats a bad choice to use patterns, do you have any suggestions how i can fix this type="email" thingy?

<ion-input type="mail" formControlName="mail" [(ngModel)]="mail"></ion-input>

Aucun commentaire:

Enregistrer un commentaire