Specifies that a constant attribute value should be injected.
The directive can inject constant string literals of host element attributes.
注入此指令获取当前元素的属性用
@Directive({ selector: 'input' }) |
可以得到结果
id |
Specifies that a constant attribute value should be injected.
The directive can inject constant string literals of host element attributes.
注入此指令获取当前元素的属性用
@Directive({ selector: 'input' }) |
可以得到结果
id |