2

I have a translationDirective to translate a text in my template.

<span translate="{{label}}">{{label}}</span>

Is it possible to use the translated value also in a html attribute?

<span translate="{{label}}" someOtherAttribute="translatedLabel">{{label}}</span>
1
  • what is translatedLabel? Commented May 16, 2019 at 9:46

1 Answer 1

1

Pipes are used to modify data . And directives are used to update DOM.Can you please post your code.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the suggestion, a pipe did the job... i completely forgot that pipes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.