agular material textbox in html code example
Example 1: 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>
Example 2: sending value in input angular material
<input matInput type="text" name="todo" #todo placeholder="Enter a todo">