I've implemented ngx-translate in my Angular-Cli app and works fine when I do something like:
<div>{{ 'some.value' | translate }}</div>
But how can I go about translating an attribute of an HTML component? Something like:
<div data-text="{{ 'some.value' | translate }}"></div>
(this code above doesn't work)
Thanks in advance for any help provided...
JB
<div attr.data-text="{{ 'some.value' | translate }}"></div>
– Buskin