Currently, I am using an ng-modal labeled as "myQuery." At the moment, there are two filters in place that look like this:
<accordion-group heading="" ng-repeat="hungry_pets in Pets" | filter:{hungry:false} | filter:{name:myQuery}" ... >
I have been researching online to figure out a way to implement a filter where whatever query is entered, it will return a list of Pets that contain those letters in any field. The object I am working with has fields such as 'name', 'owner', 'color', 'weight', and 'hungry'. Ideally, I would like to use something similar to what was suggested in this question, which would be like:
<accordion-group heading="" ng-repeat="hungry_pets in Pets" | filter:{hungry:false} | filter:({name:myQuery}||{owner:myQuery}||{color:myQuery}||{weight:myQuery})" ... >
or:
<accordion-group heading="" ng-repeat="hungry_pets in Pets" | filter:{hungry:false} | filter:filterALL)" ... >
Is there a way to achieve this by modifying the HTML tag above? If I were to create a function called 'filterALL' so that I could substitute it with 'filter:filterALL', what would that code look like?