Chicks Patel Chicks Patel - 1 year ago 87
AngularJS Question

How to apply filter inside curly brackets in angularjs?

How to write any filter inside {{}} curly brackets.

<span>{{ == '' ? 'abcd' | upper :}}</span>

At here upper is filter and anykind of custom filter. I don't want to use ng-if twice for this only. This one is not working. It's gives error of filter

please suggest me good solution

Answer Source

I haven't tried this, but I think the filter needs to come after the expression, eg

<span>{{ == '' ? 'abcd' : | upper}}</span>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download