Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

857 B
Raw Blame
@if (countryCodeOfSelectedCurrency) {
  <gf-entity-logo
    class="flex-shrink-0 me-1"
    [countryCode]="countryCodeOfSelectedCurrency"
  />
}

<input
  autocapitalize="off"
  autocomplete="off"
  matInput
  [formControl]="control"
  [matAutocomplete]="currencyAutocomplete"
  [matAutocompleteConnectedTo]="autocompleteOrigin"
/>

<mat-autocomplete
  #currencyAutocomplete="matAutocomplete"
  (closed)="onPanelClosed()"
  (optionSelected)="onUpdateCurrency($event)"
>
  @for (currency of filteredCurrencies; track currency) {
    <mat-option [value]="currency">
      <span class="align-items-center d-flex">
        <gf-entity-logo
          class="me-1"
          [countryCode]="getCountryCodeFromCurrency(currency)"
          [hasPlaceholder]="true"
        />
        <span>{{ currency }}</span>
      </span>
    </mat-option>
  }
</mat-autocomplete>