How to conditionally apply Angular filters on ng-repeat of object attributes?
<p>I have an object with 100+ attributes, such as "name", "price", "expiry date"...etc
I am using ng-repeat to iterate through all the key-pair values of the object and displaying them on a table.</p>

<pre><code>&lt;table class="table"&gt;
    &lt;tr ng-repeat="x in attr_array"&gt;
        &lt;td&gt;&lt;b&gt;{{x.key}}&lt;/b&gt;&lt;/td&gt;
        &lt;td&gt;{{x.value}}&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>But I want to use the Angular date-filter on certain attributes, such as any date fields:</p>

<pre><code>{{ x.value | date: 'MMM d, y'}}
</code></pre>

<p>And ideally other filters too. How can I go about doing this?</p>