I have a search pipe which filters a list of objects. I then want to perform an action on all objects that matched that filter. I realize I can import the pipe in my component and rerun the filter but is there any way to access the filtered results themselves?
<input type="text" [(ngModel)]="searchText"/>
<ul>
<li *ngFor="let item of items | mySearch:searchText">{{item.name}}</li>
</ul>
<button (click)="doActionOnMatchingItems(???)">Do Action</button>