### File

`src/chain-of-responsibility/validator-factory/min-length-validator.ts`

### Extends

`ValidatorFactoryHandler`

### Index

###### Methods
Public handle

### Methods

Public handle
`handle(validation: Validation)`
Defined in src/chain-of-responsibility/validator-factory/min-length-validator.ts:9
Parameters :
Name | Type | Optional | Description
validation | `Validation` |  |
Returns : `ValidatorFn`

    import { ValidatorFn } from '@angular/forms';

    import { ValidatorFactoryHandler } from '.';
    import { Validation, ValidationType } from '../../validation';
    import { ValidatorFactory } from '../../factory';

    export class MinLengthValidator extends ValidatorFactoryHandler {

      public handle(validation: Validation): ValidatorFn {
        if (ValidationType.MIN_LENGTH === validation.type) {
          return (new ValidatorFactory(validation)).createMinLengthValidator();
        }

        return super.handle(validation);
      }
    }

# results matching ""

# No results matching ""