'How to pass typecript variable to aria-label
how to pass a typecript variable to aria-label ?
follow code:
//function that returns the user's browser language.
private setLiterals(): void {
const lang = this.languageService.getShortLanguage();
if (lang in poRichTextLiteralsDefault) {
this.ariaLabel = poRichTextLiteralsDefault[lang].textColor;
}
}
<input
aria-label="????"
/>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
