[英]How To Use A Directive In A Custom Input With ControlValueAccessor Angular
[英]How to change html input label name by custom angular directive in Angular 7?
我有多个 html 表单,我应该使用 api 响应使用定义的自定义标签名称更改或覆盖输入标签字段名称。 任何人都可以通过定义自定义指令来告诉我该怎么做吗?
例如标签名称-> 名字现在我必须将该标签名称覆盖为某个自定义名称-> Fst 名称
尝试改变这个:
this.inputElement.nativeElement.value
到
this.inputElement.nativeElement.innerText
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.