-
Notifications
You must be signed in to change notification settings - Fork 3
Extend validators
ng-form-rules
aims to integrate seamlessly with Angular reactive forms and never block you from getting your work done. While ng-form-rules
can handle most scenarios and use cases we also know that that every project has unique requirements and constraints. We leave the door open for your to extend the functionality as you need it. This entails allowing you to manipulate the FormGroup
we create.
⚡ View example ⚡
You can add custom (or Angular's built in) validators alongside ones created by ng-form-rules
based on your model settings by calling extendValidator()
or extendAsyncValidator()
from ReactiveFormsRuleService
. Simply pass these functions the form control you want to extend the validators for and the validators you want to add.
Is there something missing from the documentation? Do you see a problem with the documentation? Add a new issue and we will get to work on it. Or better yet, submit a pull request. Thank you!