Is there a way to use filter inside a ng-if statement ?
for example:
<div ng-if="someVarString == ('someValue' | translate )">
<span>Hello</span>
</div>
Note: the translate filter returns a string
I know how to do it inside the controller, but I would like to use on the HTML
Yes that works. Here's a plunkr: http://plnkr.co/edit/vpCzutMnEFlTWC9gceU3?p=preview
Equivalent of your code:
So your problem must be elsewhere.