samedi 30 décembre 2017

Is there any difference when using interpolation braces and template expression in quotes

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