
Here required and patterns are working perfectly.
<span *ngIf="!nameField.errors?false:nameField.errors['minLength']">Name should contain at least 3 characters. </span>
<span *ngIf="!nameField.errors?false:nameField.errors['maxLength']">Name should only contain at most 100 characters. </span>
this 2 lines have error
New contributor
mr Programmer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2