Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
UniversalValidators.min(5)
]));
max: FormControl = new FormControl('', Validators.compose([
Validators.required,
UniversalValidators.max(10)
]));
isNumber: FormControl = new FormControl('', Validators.compose([
Validators.required,
UniversalValidators.isNumber
]));
isInRange: FormControl = new FormControl('', Validators.compose([
Validators.required,
UniversalValidators.isInRange(3, 6)
]));
maxLength: FormControl = new FormControl('', Validators.compose([
Validators.required,
UniversalValidators.maxLength(5)
]));
minLength: FormControl = new FormControl('', Validators.compose([
Validators.required,
UniversalValidators.minLength(3)
]));
constructor(protected _fb: FormBuilder) { }
ngOnInit() {
this.form = this._fb.group({