Guest User

Untitled

a guest
Nov 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <div class="field">
  2. <div class="control is-expanded has-icons-left">
  3. <input class="input" type="text" placeholder="Paris (keyup)="searchLocation(searchForm.get('location').value)" formControlName="location">
  4. <span class="icon is-small is-left">
  5. <fa-icon [icon]="['fas', 'map-marker-alt']"></fa-icon>
  6. </span>
  7. </div>
  8. <div class="dropdown" [ngClass]="{ 'is-active': (isSearched && searchForm.get('location').value) }">
  9. <div class="dropdown-menu">
  10. <div class="dropdown-content">
  11. <a class="dropdown-item" (click)="selectLocation(location)" *ngFor="let location of locations$ | async">
  12. {{ location }}
  13. </a>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
Add Comment
Please, Sign In to add comment