[Fixed] Angular translate pipe in condition


I am trying to make condition in template for translate, like this

{{showBigMap ? 'Shared.ShowMap' | translate : 'Shared.HideMap' | translate }}

But it does not compile, it got errors, my question is how I can use translate in condition in angular component template?


{{showBigMap ? ('Shared.ShowMap' | translate ): ('Shared.HideMap' | translate) }}

Wrap it in brackets

Leave a Reply

(*) Required, Your email will not be published