分為三大類Component Directives 與模板一起使用。這種類型的指令是最常見的指令類型。Attribute Directives更改元素、元件或其他指令的外觀或行為。Structural Directives 透過新增和刪除 DOM 元素來變更 DOM 佈局。