Advertisement
FiringBlanks

Angular Input

Jul 5th, 2022
701
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.52 KB | None
  1.  <form>
  2.      <mat-form-field style="width: 50vw; max-width: 450px; margin-top: -4px;" appearance="fill">
  3.         <input matInput placeholder="Search for your school..." aria-label="School" [matAutocomplete]="auto" (input)="filterSchools()" #schoolInput [(ngModel)]="searchModel" (keyup.enter)="searchButton(searchModel)" name="inputField" id="searchInput" (keyup)="keyuppedSearch()">
  4.         <mat-icon class="searchIcon" matSuffix style="color: #6336c6;" (click)="searchButton(schoolInput.value)">search</mat-icon>
  5.      <mat-form-field>
  6. </form>
Advertisement
RAW Paste Data Copied
Advertisement