A simple approach to displaying form validation messages in Angular
In this video, we take a look at how to display form validation error messages to the user in a way that is simple to implement, doesn't rely on any 3rd party dependencies, and doesn't compromise on UX.
We also walk through how the FormGroupDirective is used by Angular to hook into the standard form DOM element.
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Learn Angular with Ionic: https://ionicstart.com
ngx-errors: https://github.com/ngspot/ngx-errors
0:00 Introduction
0:44 How the validations should work
2:02 The form validators
2:37 Update on blur
3:10 Showing validation messages
6:45 Handling the custom validator
7:49 Conclusion
#ionic #angular
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony