Validators.minLength(9)
form: FormGroup; onSubmit(){ //checks if form is valid if( this.form.valid){ //more code here } }