We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example i want to optimize this case:
<span translate-once="BUYER" ng-if="deal.getMyRole() == 'BUYER'"></span> <span translate-once="SELLER" ng-if="deal.getMyRole() == 'SELLER'"></span>
Why I can't use it like below?
<span translate-once="deal.getMyRole()"></span>
The text was updated successfully, but these errors were encountered:
translate-once receives values as attribute strings, so expressions will not work unless they're part of an interpolation string.
translate-once
Give this a try with
<span translate-once="{{deal.getMyRole()}}"></span>
The big hint is that normal strings work, translate-once="BUYER", but expressions don't. That usually implies it's not interpretted
translate-once="BUYER"
Sorry, something went wrong.
No branches or pull requests
For example i want to optimize this case:
Why I can't use it like below?
The text was updated successfully, but these errors were encountered: