Angular - Template-Driven Forms
Identify the error in this Angular template snippet for form validation:
<input type="email" name="email" ngModel required #emailRef> <div *ngIf="emailRef.invalid && emailRef.touched"> <small *ngIf="emailRef.errors.required">Email is required.</small> <small *ngIf="emailRef.errors.email">Invalid email format.</small> </div>
