*ngFor="let item of items | filter:{ name: searchString } : searchString as filteredItems"
and later
<button (click)="doSomething(filteredItems)>
filteredItems
is just a local variable that can be used inside *ngFor. How can I bind filteredItems
to a global variable so I can submit all filtered items later when I press the button?