An Angular library for automatic form control validation with customizable error messages and translation support.
An Angular library for form control validation and error handling
Simpler, cleaner Angular validation error messages
Reactive Forms validation shouldn't require the developer to write lots of HTML to show validation messages. This library makes it easy.
Validointi is a library designed to simplify validation in Angular template-driven forms. It provides a flexible way to integrate custom validation logic, allowing developers to use any validation library or function they prefer, such as Vest. ## Key Features - **Custom Validation Functions** — Register any async function that returns validation errors, enabling integration with various validation libraries. - **Template-Driven Integration** — Works seamlessly with Angular's template-driven forms using directives and services. - **Vest Adapter** — Includes a helper function to easily adapt Vest validation suites for use with the library. - **Automatic Error Handling** — Automatically validates forms on value changes and sets errors on corresponding form controls. ## Philosophy Validointi aims to end the validation debate by offering a simple, adaptable solution that decouples validation logic from form implementation, giving developers full control over their validation strategies.
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. ## Key Features - **Dynamic Validation** — Automatically validates form controls using class-validator decorators applied to the underlying model class. - **Seamless Angular Integration** — Provides `ClassValidatorFormGroup`, `ClassValidatorFormControl`, and a `ClassValidatorFormBuilderService` that extend Angular's native form classes for easy adoption. - **Nested Object Support** — Validates nested form groups through the `@ValidateNested` decorator, supporting complex object structures. - **Custom Validator Combination** — Allows mixing dynamic class-validator rules with custom Angular validators using methods like `setValidatorsWithDynamicValidation`. - **Eager Validation Option** — Configurable to run validation immediately after form initialization or after the view is fully loaded. - **Backward Compatibility** — Includes untyped versions of form classes to maintain compatibility with Angular's untyped form APIs. ## Philosophy 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.