As a newcomer to AngularJS, I am currently navigating a complex form and it seems like incorporating the ngModelOptions { allowInvalid: true }
option could prove beneficial.
I can only assume that AngularJS's default behavior of discarding the model value if the view value is invalid serves a valid purpose. My initial thought is to prevent the submission of invalid data to the server when the user attempts to save.
My current queries include:
- What Angular features will no longer be accessible if I opt for this option?
- I understand that I may have to manually verify the validity of these values each time the user tries to submit the form. Are there any built-in Angular methods that could assist in checking data integrity and displaying error messages?
- Is there any other aspect that I might be overlooking while considering the implementation of this option?