Angular doesn't add ng-invalid when I add required on input element by Renderer2

前端 未结 0 1855
悲&欢浪女
悲&欢浪女 2021-01-30 03:25

I want to put the attribute "required" dinamically on an input text field using Renderer2. The attribute is added, but the field doesn\'t turn to invalid when the fiel

相关标签:
回答
  • 消灭零回复
提交回复
热议问题