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?
ng-repeatseveral times with anng-ifthat displays the appropriate one depending on the selected radio button. A better one would be making a function that encompasses all of your filters and using theng-modelvalue for the filters button in anif elseblock, then using the appropriate filter depending on the value. I am not sure if what you want is possible, but if not the latter option would be worth a shot.