A lightweight Angular library for dynamically validating reactive forms using class-validator decorators.
ngx-reactive-form-class-validator is a library that bridges Angular's reactive forms with the class-validator library, enabling dynamic, declarative validation based on TypeScript class decorators. It simplifies form validation by allowing developers to define validation rules directly on their model classes, ensuring consistency between the data model and form logic.
ClassValidatorFormGroup, ClassValidatorFormControl, and a ClassValidatorFormBuilderService that extend Angular's native form classes for easy adoption.@ValidateNested decorator, supporting complex object structures.setValidatorsWithDynamicValidation.The library emphasizes a declarative and type-safe approach to form validation, reducing boilerplate and keeping validation logic close to the data model. It aims to enhance developer experience by leveraging existing class-validator ecosystems within Angular applications.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.