Guest User

Untitled

a guest
Nov 21st, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <mat-form-field>
  2. <mat-select (keypress)="selectKeyPress($event)" placeholder="State" formControlName = "state" required id="stateDrop">
  3. <ng-container *ngFor = "let item of stateList">
  4. <mat-option [value] = "item.stateId">{{item.name}}</mat-option>
  5. </ng-container>
  6. </mat-select>
  7. <mat-error *ngIf="(form.controls['state'].invalid && form.controls['state'].touched)">You must select a state.</mat-error>
  8. </mat-form-field>
Add Comment
Please, Sign In to add comment