For example, there are three ways about style-binding. Suppose color="red"
is a property of current component, then we can use:
<p [style.color]="color">Hello</p>
<p style.color=>Hello</p>
<p bind-style.color="color">Hello</p>
My question is is there any difference with these three syntax?
Aucun commentaire:
Enregistrer un commentaire