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 2502 fois
Modifier
-2
Évaluations de la communauté
developer avatar
Resat
05/06/2024
"expression typescript" serait plus precis.
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.