巧用Angular项目的get设置Angular class属性访问的别名
生活随笔
收集整理的這篇文章主要介紹了
巧用Angular项目的get设置Angular class属性访问的别名
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
以this.host為例:
實(shí)現(xiàn)位置:
/*** Helper method to return the host element for the directive* given by the `elementRef`.*/protected get host(): HTMLElement {return this.elementRef.nativeElement;}更多Jerry的原創(chuàng)文章,盡在:“汪子熙”:
總結(jié)
以上是生活随笔為你收集整理的巧用Angular项目的get设置Angular class属性访问的别名的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: dnf红眼海伯伦换的顺序(地下城与勇士)
- 下一篇: 华为p30的指示灯的位置