Angular 2 属性指令


本文向大家介绍Angular 2 属性指令,包括了Angular 2 属性指令的使用技巧和注意事项,需要的朋友参考一下

示例

<div [class.active]="isActive"></div>

<span [style.color]="'red'"></span>

<p [attr.data-note]="'This is value for data-note attribute'">A lot of text here</p>