Angular Video Series Part 21 || Form Validation

Опубликовано: 31 Декабрь 2024
на канале: Code with Sloba
802
28

This tutorial will show you how to validate user input from the UI and display useful validation messages, in both reactive and template-driven forms.

Anything that you want to store in your database needs to have multiple levels of validation.
To add validation to a template-driven form, you add the same validation attributes as you would with native HTML form validation. Angular uses directives to match these attributes with validator functions in the framework.

Every time the value of a form control changes, Angular runs validation and generates either a list of validation errors that results in an INVALID status or null, which results in a VALID status.


************************************************************
Previous Video:    • Angular Video Series Part 20 || React...  
Next video:    • Angular Video Series Part 22 || HTTP ...  
Full video series    • Full Angular Course  
************************************************************

👉 Linkedin:
✔️   / slobodan-gajic  

👉 Portfolio:
✔️https://bobangajicsm.github.io/portfo...

👉 Twitter:
✔️  / _slobodangajic_