Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to validate on submit? #77

Open
Almis90 opened this issue Aug 24, 2020 · 0 comments
Open

How to validate on submit? #77

Almis90 opened this issue Aug 24, 2020 · 0 comments

Comments

@Almis90
Copy link

Almis90 commented Aug 24, 2020

Let's say I have the following code

<form>
  <input type="text" [(ngModel)]="model.email" name="email" #formControl="ngModel" email />
  <span *ngIf="formControl.hasError('normalEmailRule')">Is not a email</span>
</form>

When I type something it shows the error, but I also want to show the error when the user clicks on submit.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant