Does anyone know how to filter out reporting results in am angular 2 dropdown list. I am currently trying to do it within the template *ngFor but having no luck. I will try a custom pipe too. The data is from a JSON array. In the below object I am trying to only show one instance of "State Owned Entities"
My data object
items[
{
"currentBUName":"Financial Services"
}
{
"currentBUName":"State Owned Entities"
}
{
"currentBUName":"State Owned Entities"
}
]
My ts code extract
<ion-item>
<ion-label>Please select current business unit</ion-label>
<ion-select [(ngModel)]="selectedValue">
<ion-option *ngFor="let indexx of this.items;"[value]="indexx">{{indexx.currentBUName}}</ion-option>
</ion-select>
</ion-item>