Question du test Angular

Comment dynamiser l'attribut aria-label en Angular?

Intermédiaire

Pour dynamiser l'attribut aria-label, quelle syntaxe dois je utiliser ?

Auteur: Emmanuel DemeyStatut : PubliéeQuestion passée 2204 fois
Modifier
-2
Évaluations de la communauté
developer avatar
Auteur anonyme
29/04/2024
[attr.aria-label]
developer avatar
Faute d'orthographe / de mise en forme
Auteur anonyme
28/03/2024
Dashes are part of the answer or not ?❓?
developer avatar
Autre
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.