Discover a paradigm shift in form validation practices in this 21-minute conference talk from ng-conf 2022. Challenge conventional wisdom as Ward Bell argues for model-driven validation over form-centric approaches. Learn why validating the business model, rather than the form itself, leads to more robust and maintainable applications. Explore the benefits of centralized validation rules, including improved testability, code reuse between client and server, and enhanced user experiences. Gain insights into creating a validation system that works seamlessly with both Template Driven and Reactive forms in Angular. Understand how this approach enables advanced features like whole-model validation, operation blocking based on model validity, and comprehensive invalid field reporting. See a demonstration of an open-source validation library that embodies these principles, battle-tested in large-scale Angular applications. Whether you're a seasoned Angular developer or new to form validation, this talk promises to revolutionize your approach to ensuring data integrity in web applications.
Overview
Syllabus
Form Validation Done Right | Ward Bell | ng-cof 2022
Taught by
ng-conf