![]() |
VOOZH | about |
In this article, we are going to check whether a form is invalid or not in Angular 10. invalid property is used to report that the control or the form is invalid or not.
Syntax:
form.invalid
Return Value:
NgModule: Module used by the invalid property is:
Approach:
Example 1:
Output:
👁 ImageReference: https://v17.angular.io/api/forms/AbstractControlDirective#invalid