I am currently working with angular 1.2.25
, angular-translate 2.0.1
,
angular-translate-loader-static-files 2.0.0
, and angular-bindonce 0.3.1
.
My goal is to translate a static key using bindonce. Here is the code snippet I have:
<div bindonce>
<div bo-bind="'TEST' | translate"></div>
</div>
When I use this snippet, the translation key is displayed instead of the actual translation. However, if I switch from using bo-bind
to ng-bind
, everything works perfectly:
<div>
<div ng-bind="'TEST' | translate"></div>
</div>
Upon debugging, it appears that the translate filter is not available when bo-bind
is executed.
Is there a way for me to utilize one-time binding along with angular-translate?