Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

mat-form-field email validation

<input matInput placeholder="Favorite food" [(ngModel)]="enterEmail" name="myEmail" pattern="[a-zA-Z0-9.-_]{1,}@[a-zA-Z.-]{2,}[.]{1}[a-zA-Z]{2,}" required>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #email #validation
ADD COMMENT
Topic
Name
2+8 =