问题
I found this post but it cant solve my problem. I can't validate a simple form with FormControls disabled. I did make a stackblitz example here, please check out my code and verify that is impossible to verify the value of the name control if it's disabled.
Stackblitz code
Thank you in advance.
回答1:
Solution by @Eliseo:
If you want not loose the validate you can use [attr.disabled]="true" (or any condition). This give your control an apparence of disabled but still is "validating".
来源:https://stackoverflow.com/questions/54522845/angular-5-validating-disabled-fields