Skip to content

Commit 1720602

Browse files
Finished migration guide
1 parent dd50648 commit 1720602

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/migration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,11 +1587,11 @@ Validators.and([
15871587

15881588
Used for chaining and combining multiple validators.
15891589

1590-
- `FormBuilderValidator.and()` - Combines the current validator with another validator using logical AND.
1591-
- `FormBuilderValidator.or()` - Combines the current validator with another validator using logical OR.
1592-
- `FormBuilderValidator.when()` - Adds a condition to apply the validator only if the condition is met.
1593-
- `FormBuilderValidator.unless()` - Adds a condition to apply the validator only if the condition is not met.
1594-
- `FormBuilderValidator.transform()` - Transforms the value before applying the validator.
1595-
- `FormBuilderValidator.skipWhen()` - Skips the validator if the condition is met.
1596-
- `FormBuilderValidator.log()` - Logs the value during the validation process.
1597-
- `FormBuilderValidator.withErrorMessage()` - Overrides the error message of the current validator.
1590+
- `FormBuilderValidator.and()`: use `Validators.and` instead.
1591+
- `FormBuilderValidator.or()`: use `Validators.or` instead.
1592+
- `FormBuilderValidator.when()`: use `Validators.validateIf` instead.
1593+
- `FormBuilderValidator.unless()`: use `Validators.skipIf`
1594+
- `FormBuilderValidator.transform()`: use `Validators.transformAndValidate` instead.
1595+
- `FormBuilderValidator.skipWhen()`: use `Validators.skipIf` instead.
1596+
- `FormBuilderValidator.log()`: use `Validators.debugPrintValidator` instead
1597+
- `FormBuilderValidator.withErrorMessage()`: there is no equivalent in the new api.

0 commit comments

Comments
 (0)