I know that in angular, to apply a custom filter with ng-repeat will look something like this:
ng-repeat="request in allRequests | allRequests"
But I've got a couple of different filters. eg.
allFutureRequests, allPastRequests, myPastRequests, group1FutureRequests
and I was hoping to swap out the 'allRequests' filter and replace it with any of the other filters dynamically, depending on what what some buttons the user clicks on.
How would I go about doing that?