Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

225
Visualizações
Angular Typescript - Autocomplete

Apologies in advanced if this question has been asked before, I've gone through a few help articles but unfortunately not able to make anything work properly when it comes to my code, the answer might be a simple one, hence asking for help.

So basically I am trying to implement Smart Search (Autocomplete) functionality where you have a fixed list (Currently implemented as Select tag), when user types in characters, it narrows down the list for the user. What I've done currently is this (in html) file,

asset.component.html

<div class="form-group">
    <h5><label for="assetId" class="form-label text-right" style="margin: 10pt">Title</label></h5>
    <select id="assetId" name="id" #assetId="ngModel" required [class.is-invalid]="assetId.invalid" class="form-control is-invalid" [(ngModel)]="selectedAsset" (change)="getAssetValue()">
        <option *ngFor="let asset of assets" value="{{asset.id}}-{{asset.text}}">{{asset.text}}</option>
    </select>
</div>

For the same of example, we can assume that assets is an array with id and text fields defined under asset.component.ts file

I've looked at the following URL but as I'm very new to all this, I was unable to make this work and would appreciate if someone could help me out with this. Thank you

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda