Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <mat-form-field>
  2. <input type="text" placeholder="Select company" matInput [formControl]="myControl" [matAutocomplete]="auto">
  3. </mat-form-field>
  4.  
  5. <mat-autocomplete #auto="matAutocomplete">
  6. <mat-option *ngFor="let option of testCompanies" [value]="option">
  7. {{ option }}
  8. </mat-option>
  9. </mat-autocomplete>
  10.  
  11. export class EditModalContent /* implements OnInit */ {
  12. testCompanies: string[] = ["One", "Two", "Three", "Four"];
  13. myControl = new FormControl();
  14. filteredOptions: Observable<string[]>;
  15.  
  16. constructor(public activeModal: NgbActiveModal) {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement