Angular-Forms-Tutorial
Angular-Forms-Tutorial copied to clipboard
fix: update form validation for Angular 12 compatibility
Problem
Form validation was not working properly after upgrading to Angular 12 due to changes in the form control structure.
Solution
Updated the registrationForm control validation logic to be compatible with Angular 12's updated form control structure. The changes ensure that form validation works correctly with the new Angular 12 requirements.
Changes Made
- Updated HTML template validation syntax to match Angular 12 form control structure
- Modified form control references to align with Angular 12 best practices
References
- Fixes #1
- Solution based on: https://stackoverflow.com/questions/68052924/not-able-to-validate-the-form-in-angular-12
This PR was created from task: http://localhost:3000/tasks/SmoYslz_ANsxKb-3O2-g0