Is there a way to hide text within an ion-option? I'm looking to conceal or remove certain text from displaying in an ion-option without deleting the underlying data. This is important as I want users to be able to choose it.
<ion-select [(ngModel)]="refine" (ionChange)="optionsFn(item, i);" >
<ion-option [value]="item" *ngFor="let item of totalfilter ;let i = index" >
{{item["@NAME"]}}
</ion-option>
</ion-select>
Additionally,
this.totalfilter = data.json().FACETLIST.FACET;
for(let x of this.totalfilter) {
if(x["@NAME"] == 'local3' || x["@NAME"] == 'Local3') {
x["@NAME"].hide(); //// I'm unsure how to hide this text
}
}
Desired Output:
Current Display Desired Display
================== ======================
book book
pen pen
school school
local3