I'm having trouble with this code which is Angular 2. I have something like this:
<select [(ngModel)]="postoSelecionado" name="postos-disponiveis" id="postos-disponiveis" class="sel-posto" materialize="material_select" [disabled]="!checkboxPostos.checked">
<option *ngFor="let posto of getPostosAtivos" [value]="posto?.cdPt">{{ posto?.cdPt}}—{{ posto?.dsPt }}</option>
</select>
And I want to search through this select. I'm really struggling with this. Can we do something like a search like in the example below?
<option *ngFor="let posto of getPostosAtivos | search:postoSelecionado" [value]="posto?.cdPt">{{ posto?.cdPt}}—{{ posto?.dsPt }}</option>