Question from the Angular test

How to dynamize the aria-label attribute in Angular?

Medium

To dynamize the aria-label attribute, which syntax should I use?

Author: Emmanuel DemeyStatus: PublishedQuestion passed 2205 times
Edit
-2
Community Evaluations
developer avatar
Auteur anonyme
29/04/2024
[attr.aria-label]
developer avatar
Spelling / formatting error
Auteur anonyme
28/03/2024
Dashes are part of the answer or not ?❓?
developer avatar
Other
Danny
26/04/2024
[attr.aria-label]="{{js expression}}" is a correct answer but promotes the use of bad coding practices by not using property binding instead.