I have a structure like that and I want to hide the divider if there are no elements inside the inner repeating div after it's been filtered (like checking theme.items.length === 0 but after filtering)
<div ng-repeat="theme in myObj">
<div class="item item-divide" ng-show="showDivider">{{theme.name}}</div>
<div ng-repeat="item in theme.items | myCustomFilter: searchQuery: this">
<!--code for displaying each item-->
</div>
<div>
I tried passing the current scope to myCustomFilter and changing showDivider property from there, but once it hides the element it's not going to show it correctly when searchQuery is changed.