angular6 Directive自定義屬性指令

文章參考 屬性指令html 指令建立 ng g directive hbFontcolor 案例 指令的代碼邏輯 import { Directive, ElementRef, HostListener, Input } from '@angular/core'; @Directive({ // 使用CSS選擇器,若是屬性中有appHbBackground,就表示使用了該主鍵 selec
相關文章
相關標籤/搜索