I have multiple html forms where I should change or override input label fields name with defined custom label names using api response. Can any one tell how should I do by defining custom directive?
Eg Label name -> First Name now I have to override that label name to some custom name -> Fst Name
Try changing this:
this.inputElement.nativeElement.value
to
this.inputElement.nativeElement.innerText
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.