Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <form name="contactForm" #form="ngForm" (ngSubmit)="submitForm(form)">
  2. <div class="form-group" [ngClass]="{'error': !emailValid &&
  3. form.controls.emailInput?.touched || submitted && !emailValid}">
  4.  
  5. <app-email [checkValidation]="checkInput"
  6. [title]="'lease.contact_email'"
  7. [(email)]="formData.email"
  8. [emptyErrorMsg]="'lease.contact_email'"
  9. (emailValid)="emailValid = $event"></app-email>
  10. <em *ngIf=" submitted && !emailValid ||
  11. !emailValid && form.controls.emailInput?.touched">
  12. {{'lease.contact_error.email' | translate}}</em>
  13. </div>
  14. </form>
  15.  
  16. <input name="emailInput" class="tfform-control-temp" type="email"
  17. [class.error]="checkValidation && !_emailValid"
  18. [(ngModel)]="email" (keyup)="valueChange()" maxlength="75"
  19. (blur)="valueChange()" autocomplete="off">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement