Does anyone know how I can hide ion-item-divider when you are filtering and that group has no matching items?
Right now I am using Ionic 2 and using pipes to filter down ionic-items depending on the value of the search input.
In the screen shot, you cans see that “primary group” and “secondary group” has no matching items and should be hidden.
<ion-item-group *ngFor="let group of (groups)">
<ion-item-divider color="light">{{ group.groupName }}</ion-item-divider>
<button ion-item *ngFor="let item of (group.items) | myfilter:{arg1:searchText, arg2:showFavourite}"(click)="detail(item)">
<h2>{{ item.name }}</h2>
</button>
</ion-item-group>