You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div><labelfor="fullname">Passenger name:</label><inputtype="text"
name="fullname"
required#fullname="ngModel"
[ngModel]="detail?.fullname"><divclass="error" *ngIf="fullname.errors?.required && fullname.dirty">
Passenger name is required.
</div></div>
By using a property inside the errors property of the ngModel reference it shows me that error.
This shouldn't be an error since it's valid syntax for template-driven forms.