I have an element that conditionally appears, which should be filled when it is visible. (using ng-required)
However, when it is not displayed, I get the following error:
Invalid form control using name = '' does not focus
How to make ng-work ONLY if the element is visible. I do not want to enter novalidate in the form, because if I do this when the element is visible, the check will not happen.
angularjs
Kingkongfrog
source share