Try to add value in the First Name and remove it, the validation will be executed and an Error message will be displayed as shown here: Note: With Angular 1.3 and ng-touched, as soon as the control has blurred, you can now set a style on it, regardless of whether the value in the control was actually edited or not.The above shows an error message for the First Name as it must start with a Capital letter.The expression ", checks the validation on first Name using $invalid and $dirty. Since we have several validation checks on element, we need to display corresponding error messages e.g.
Once the form has all valid entries, the Submit button will be enabled.
Step 5: Run the application, the page will displayed with disabled submit button.
So, it will be comfortable for you to put these form buttons on every-page and users can easily access it.
ng-class is the Angular directive used to apply class on the elements based upon the evaluated expression.
Any support for use of regex checks for e-mails I am 100% against.