Open studentIvan opened 8 years ago
translate-once
receives values as attribute strings, so expressions will not work unless they're part of an interpolation string.
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
For example i want to optimize this case:
Why I can't use it like below?