{"id":25164046,"url":"https://github.com/abarghoud/ngx-reactive-form-class-validator","last_synced_at":"2026-02-07T10:10:07.208Z","repository":{"id":45852696,"uuid":"309828930","full_name":"abarghoud/ngx-reactive-form-class-validator","owner":"abarghoud","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-06T21:17:05.000Z","size":1235,"stargazers_count":24,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T02:25:51.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abarghoud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-03T23:10:57.000Z","updated_at":"2025-07-24T14:36:25.000Z","dependencies_parsed_at":"2024-06-04T23:09:45.777Z","dependency_job_id":null,"html_url":"https://github.com/abarghoud/ngx-reactive-form-class-validator","commit_stats":{"total_commits":39,"total_committers":2,"mean_commits":19.5,"dds":0.02564102564102566,"last_synced_commit":"e63de5ed0b2f3cfe4b9ed7fea3caf95790c7200e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/abarghoud/ngx-reactive-form-class-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarghoud%2Fngx-reactive-form-class-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarghoud%2Fngx-reactive-form-class-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarghoud%2Fngx-reactive-form-class-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarghoud%2Fngx-reactive-form-class-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abarghoud","download_url":"https://codeload.github.com/abarghoud/ngx-reactive-form-class-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarghoud%2Fngx-reactive-form-class-validator/sbom","scorecard":{"id":159859,"data":{"date":"2025-08-11","repo":{"name":"github.com/abarghoud/ngx-reactive-form-class-validator","commit":"d2c5e113e430f8f57a5623bcf2f7d865920c5776"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":4,"reason":"4 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release-drafter.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-drafter.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/abarghoud/ngx-reactive-form-class-validator/release-drafter.yml/main?enable=pin","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"45 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-x2rg-q646-7m2v","Warn: Project is vulnerable to: GHSA-jgmv-j7ww-jx2x","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T13:03:10.567Z","repository_id":45852696,"created_at":"2025-08-16T13:03:10.567Z","updated_at":"2025-08-16T13:03:10.567Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29192101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T04:01:53.589Z","updated_at":"2026-02-07T10:10:07.202Z","avatar_url":"https://github.com/abarghoud.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Form Validation"],"readme":"\n# ngx-reactive-form-class-validator\nA lightweight library for dynamically validate Angular reactive forms using [class-validator](https://github.com/typestack/class-validator) library.\n\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ngx-reactive-form-class-validator\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/ngx-reactive-form-class-validator?color=green\" alt=\"npm version\" /\u003e\n  \u003c/a\u003e\u0026nbsp;\n  \u003ca href=\"https://www.npmjs.com/package/ngx-reactive-form-class-validator\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/min/ngx-reactive-form-class-validator\" alt=\"npm minified size\" /\u003e\n  \u003c/a\u003e\u0026nbsp;\n  \u003ca href=\"https://codecov.io/gh/abarghoud/ngx-reactive-form-class-validator\"\u003e\n      \u003cimg src=\"https://img.shields.io/codecov/c/github/abarghoud/ngx-reactive-form-class-validator?color=green\" alt=\"Code coverage\" /\u003e\n  \u003c/a\u003e\u0026nbsp;\n  \u003ca href=\"https://app.circleci.com/pipelines/github/abarghoud/ngx-reactive-form-class-validator\"\u003e\n      \u003cimg src=\"https://img.shields.io/circleci/build/github/abarghoud/ngx-reactive-form-class-validator/main\" alt=\"Build status\" /\u003e\n  \u003c/a\u003e\u0026nbsp;\n\u003c/p\u003e\n\n## Table of contents\n  - [Table of Contents](#table-of-contents)\n  - [Installation](#installation)\n\t  - [Peer dependencies](#peer-dependencies)\n  - [Usage](#usage)\n    - [Defining classes with validators](#defining-classes-with-validators)\n    - [Untyped classes](#untyped-classes)\n    - [Creating a ClassValidatorFormGroup](#creating-a-classvalidatorformgroup)\n      - [Using ClassValidatorFormBuilderService](#using-classvalidatorformbuilderservice)\n      - [Using ClassValidatorFormGroup class](#using-classvalidatorformgroup-class)\n      - [Eager Validation Option]()\n    - [Add custom validators](#add-custom-validators)\n      - [Providing validators when creating the ClassValidatorFormControl](#providing-validators-when-creating-the-classvalidatorformcontrol)\n      - [Providing validators using  `setValidators`/`setValidatorsWithDynamicValidation`  methods](#providing-validators-using-setvalidatorssetvalidatorswithdynamicvalidation-methods)\n  -  [Available classes](#available-classes)\n\t  - [ClassValidatorFormBuilderModule](#classvalidatorformbuildermodule)\n\t  - [ClassValidatorFormBuilderService](#classvalidatorformbuilderservice)\n\t\t  - [classType parameter](#classtype-parameter)\n\t  - [ClassValidatorFormGroup](#classvalidatorformgroup)\n  - [Stackblitz example](https://stackblitz.com/edit/ngx-reactive-form-class-validator-4pbcrp)\n  - [Developer note](#developer-note)\n  \n## Installation\n\n    npm install --save ngx-reactive-form-class-validator\n    \n    // OR\n    \n    yarn add ngx-reactive-form-class-validator\n### Peer dependencies\n    \"@angular/common\": \"\u003e=2 \u003c22\",\n    \"@angular/core\": \"\u003e=2 \u003c22\",\n    \"@angular/forms\": \"\u003e=2 \u003c22\",\n    \"class-validator\": \"\u003e=0.12 \u003c0.15\"\n\n###### _While this library will function with any version of class-validator within this range, we strongly recommend using class-validator ^0.14.0 or later due to a critical [security vulnerability](https://github.com/typestack/class-validator/blob/develop/CHANGELOG.md#:~:text=forbidUnknownValues%20option%20is%20enabled%20by%20default) addressed in versions 0.14.0 and beyond. This ensures the highest level of security for your application._\n\n## Usage\n### Defining classes with validators and deserializers\n**Please note that properties without a class-validator decorator will not be validated, see [class-validator](https://github.com/typestack/class-validator)**\nprofile.ts\n\n    import { IsEmail, IsNotEmpty, ValidateNested } from 'class-validator';  \n      \n    class Profile {  \n      @IsNotEmpty()  \n      public firstName: string;  \n      \n      @IsNotEmpty()  \n      public lastName: string;  \n\n      @IsEmail()  \n      public email: string;  \t\n      \n      @ValidateNested()  \n      public address: Address;  \n    }\naddress.ts\n      \n    import { IsNotEmpty, IsOptional, ValidateNested } from 'class-validator';  \n    \n    class Address {  \n      @IsNotEmpty()  \n      public street: string;  \n      \n      @IsNotEmpty()  \n      public city: string;  \n      \n      @IsOptional()  \n      public state: string;  \n      \n      @IsNotEmpty()  \n      public zip: string;  \n    } \n\n### Untyped classes\nUntyped version of ngx-class-validator form classes exist in order to be backward compatible with angular untyped form classes\n### Creating a ClassValidatorFormGroup\n#### Using ClassValidatorFormBuilderService\nAs described [here](#classvalidatorformbuilderservice) to be able to use the `ClassValidatorFormBuilderService`, you need to import [ClassValidatorFormBuilderModule](#classvalidatorformbuildermodule).\n\napp.module.ts\n\n    imports: [  \n      ...\n      ClassValidatorFormBuilderModule.forRoot(),  \n      ...\n    ],\nThen in your component\nprofile-form.component.ts\n\n    public constructor(  \n     private fb: ClassValidatorFormBuilderService,  \n    ) { }\n    \n     profileForm =  this.fb.group(Profile,\n\t    {\n\t     firstName:  [''],\n\t     lastName:  [''],\n\t     email: [''],\n\t     address: this.fb.group(Address,\n\t\t      {\n\t\t\t      street:  [''],\n\t\t\t      city:  [''],\n\t\t\t      state:  [''],\n\t\t\t      zip:  ['']\n\t\t\t  }\n\t\t  ),\n\t    });\n#### Using ClassValidatorFormGroup class\nAs it's possible with angular `FormGroup` class we can directly create a `ClassValidatorFormGroup` using the constructor\n\n\n    export class ProfileFormComponent {\n      profileForm = new ClassValidatorFormGroup({\n        firstName: new ClassValidatorFormControl(''),\n        lastName: new ClassValidatorFormControl(''),\n      });\n    }\n\nNow, setting value to any of form controls, will perfom the validator set in the corresponding class.\n\n    this.profileForm.controls.email.setValue('notEmailValue');\n    console.log(this.profileForm.controls.email) // { isEmail: 'email must be an email' }\n\t\n\tthis.profileForm.controls.email.setValue('email@email.com');\n    console.log(this.profileForm.controls.email) // null\n\n#### Eager Validation Option\n\nBy default, `ngx-reactive-form-class-validator` validates form controls after the form is fully initialized (ngAfterViewInit).\nIf you want validation to run immediately after form initialization (for example, in ngAfterViewInit or just after you create a FormGroup), you can enable eager validation at the ClassValidatorFormGroup/FormBuilder level.\n\n```\nimport { ClassValidatorFormGroup, ClassValidatorFormControl } from 'ngx-reactive-form-class-validator';\n\nconst formGroup = new ClassValidatorFormGroup({\n  email: new ClassValidatorFormControl(''),\n  password: new ClassValidatorFormControl('')\n}, null, { eagerValidation: true }); // 👈 Enable eager validation here\n\n\n// Or using the form builder\n\npublic constructor(  \n private fb: ClassValidatorFormBuilderService,  \n) { }\n\n profileForm =  this.fb.group(\n    Profile,\n    {\n     firstName:  [''],\n     lastName:  [''],\n     email: [''],\n     address: this.fb.group(Address,\n          {\n              street:  [''],\n              city:  [''],\n              state:  [''],\n              zip:  ['']\n          }\n      ),\n    },\n    undefined,\n    { eagerValidation: true } // 👈 Enable eager validation here\n);\n\n```\n\n### Add custom validators\nIt is possible as well to combine dynamic validation with custom validation.\nThere are several ways to do it:\n#### Providing validators when creating the ClassValidatorFormControl\n\n    this.fb.group (Profile, {  \n\t      email: ['', Validators.required],\n\t      ...\n      }\n\t)\n\n\t// OR\n\t\n\tnew ClassValidatorFormGroup(Profile, {\n\t\temail: new ClassValidatorFormControl('', Validators.required)\n\t})\n#### Providing validators using `setValidators`/`setValidatorsWithDynamicValidation` methods\nBoth `setValidators` and `setValidatorsWithDynamicValidation` replace validators provided in parameter, the only one difference is that `setValidatorsWithDynamicValidation` add given validators as well as re-enable dynamic validation, as the `setValidators` method replace validators with given ones without re-enabling dynamic validation.\n\n    emailControl.setValidators(Validators.required); // there will be only Validators.required validator\n\n\temailControl.setValidatorsWithDynamicValidation(Validators.required) // there will be Validaros.required validator as well as dynamic validator\n\n\n\n## Available classes\n### ClassValidatorFormBuilderModule\nAn Angular module that provides [ClassValidatorFormBuilderService](#classvalidatorformbuilderservice) for dependency injection.\nIt can either be imported `forRoot` or normally (We don't recommend importing it normally because that will create multiple instances of [ClassValidatorFormBuilderService](#classvalidatorformbuilderservice)).\n\napp.module.ts\n\n    imports: [  \n      ...\n      ClassValidatorFormBuilderModule.forRoot(),  \n      ...\n    ],\n### ClassValidatorFormBuilderService\nAn Angular injectable service having the same methods as Angular [FormBuilder](https://angular.io/api/forms/FormBuilder) except a minor change of `group` method signature, see below:\n\n    group(  \n      classType: ClassType\u003cany\u003e, // The class type of the form group value.\n      // Angular FormBuilder group method parameters\n      controlsConfig: { [p: string]: any },  \n      options?: AbstractControlOptions | { [p: string]: any } | null,  \n    ): ClassValidatorFormGroup;\n    \n#### classType parameter\nWe've introduced a new parameter called `classType` (a class type containing [class-validator](https://github.com/typestack/class-validator) decorators) that you should provide, to enable us to perform dynamic validations.\n### ClassValidatorFormGroup\nA typescript class extending angular [FormGroup](https://angular.io/api/forms/FormGroup) class, with a minor change of `constructor` signature, the [classType parameter](#classType-parameter).\n\n    export class ClassValidatorFormGroup extends FormGroup {        \n     public constructor(  \n\t      private readonly classType: ClassType\u003cany\u003e, \n\t      // Angular FormGroup constructor parameters\n\t      controls: {  \n\t          [key: string]: AbstractControl;  \n\t      },  \n\t      validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null,  \n\t      asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null,  \n      ) {  \n        ... \n      }\n### ClassValidatorFormControl\nA typescript class extending angular [FormControl](https://angular.io/api/forms/FormControl) class, that will use the [classType](#classtype-parameter) instance to perform validations and assign validation errors to the `ClassValidatorFormControl`.\n\nAs it extends angular [FormControl](https://angular.io/api/forms/FormControl) class, it contains all `FormControl` methods, with a custom new method:\n\n    setValidatorsWithDynamicValidation(newValidator: ValidatorFn | ValidatorFn[] | AbstractControlOptions | undefined): void\n\nThis method has the same signature as FormControl [setValidators](https://angular.io/api/forms/AbstractControl#setValidators) method. In addition it re-enables dynamic validation when disabled.\n\n## Developer note\nWe are open for proposals, so please don't hesitate to create issues if you want to report any bugs/proposals/feature requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabarghoud%2Fngx-reactive-form-class-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabarghoud%2Fngx-reactive-form-class-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabarghoud%2Fngx-reactive-form-class-validator/lists"}