Angular Dodaj atrybut HTML po warunkach
<input [attr.attribute] = "condition ? '' : null" />
Ukulily
<input [attr.attribute] = "condition ? '' : null" />