Closed ericjames closed 6 years ago
This directive is what it is - a directive. You can achieve what you're looking for by use the regular $translate service to translate your string - and storing that string, and calling it in your view using a ng-bind='::scope.yourString'
- this way you are basically using one-time binding.
We have a single-page app that rotates languages. However I would like to use translate-once when this functionality is disabled. Could I invoke it in a controller ie:
Or at least as provider?