How to do this in angularjs ?
I have field
value and is_first_filter
(where true
or false
).
Where is_first_filter
is true
I want filtered field
value by firstCustomFilter
.
I can do this.
<p>field | is_first_filter ? firstCustomFilter : secondCustomFilter</p>
But it gives an error, so how can I select a filter by expression ?