0

How is it possible to validate AngularJS form controls with ng-messages that are not rendered and therefore not present in the DOM?

I use vs-repeat as virtual scroll implementation. vs-repeat ensure that only the visible elements are rendered and present in the DOM.

If I submit the form only the rendered (=visible) elements are validated. How can I validate the not rendered elements?

3
  • Possible duplicate of Validation of invisible and disabled fields in AngularJS Commented Mar 14, 2018 at 11:45
  • Everything is possible but not as you wanting to achieve... Commented Mar 15, 2018 at 13:40
  • I implemented a workaround which manually goes through the data model and validate the bind data. But this is not a nice solution. Would be nice if I could use ngmessages and the validation behind for the not rendered elements. Commented Mar 16, 2018 at 14:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.