AngularJS how to have multiple $filter in a controller?
<p>The leftValue array contains JSON information such as { name: 'John', gender: 'male' }
I am trying to filter information by both name and gender in a search bar. For now, the filter only filtered by name. How can I filter by both name and gender?</p>

<pre><code>scope.leftValue = $filter('filter')( leftValue, {
                    'name': text
                    })
</code></pre>

<p>What I have tried</p>

<pre><code>scope.leftValue = $filter('filter')( leftValue, {
                    'name': text,
                    'gender': text,
                    })
</code></pre>