Hello, i have issue with my form, i got error-message if nothing is filled in my input, but if there is something even if it's not email type the message is not displayed.
How doing to check the type is also valid ?
Thanks
<div class="field email">
<div class="label">
<label for="email">Adresse email</label>
</div>
<input
class="form-control"
type="email"
id="email"
name="email"
ngModel
required
/>
@if(signInForm.controls['email'].touched &&
signInForm.controls['email'].invalid){
<div class="error-list">
<span class="error-message">Adresse email invalide</span>
</div>
}
</div>