Advertisement
Guest User

required

a guest
Nov 13th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.47 KB | None | 0 0
  1. <input type="email"
  2.                 class="form-control"
  3.                 id="mail"
  4.                 name="mail"
  5.                 placeholder="Inserisci la tua e-mail"
  6.                 [(ngModel)]="model.mail"
  7.                 #mail="ngModel"
  8.                 required
  9.                 pattern="[a-z0-9._%+-]+@[a-z0-9-.]+\.[a-z]{2,}$">
  10.                 <div *ngIf="mail.errors && mail.dirty" class="invalid-feedback">
  11.                     <p *ngIf="mail.errors.pattern" >
  12.                         Formato e-mail non valido
  13.                     </p>
  14.                     <p *ngIf="mail.errors.required" >
  15.                         * Campo obbligatorio
  16.                     </p>
  17.                 </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement