指令分为三类,组件,属性指令和结构性指令布局
Component directive
UI
Directive
Attribute directive
Structural directive
DOM
属性指令例如 ngClass ngStylespa
结构性指令 *ngIf *ngFor *ngSwitchcode
参考自http://mttcug.cnblogs.com/blog