Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="contactForm" #form="ngForm" (ngSubmit)="submitForm(form)">
- <div class="form-group" [ngClass]="{'error': !emailValid &&
- form.controls.emailInput?.touched || submitted && !emailValid}">
- <app-email [checkValidation]="checkInput"
- [title]="'lease.contact_email'"
- [(email)]="formData.email"
- [emptyErrorMsg]="'lease.contact_email'"
- (emailValid)="emailValid = $event"></app-email>
- <em *ngIf=" submitted && !emailValid ||
- !emailValid && form.controls.emailInput?.touched">
- {{'lease.contact_error.email' | translate}}</em>
- </div>
- </form>
- <input name="emailInput" class="tfform-control-temp" type="email"
- [class.error]="checkValidation && !_emailValid"
- [(ngModel)]="email" (keyup)="valueChange()" maxlength="75"
- (blur)="valueChange()" autocomplete="off">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement