how to do validation with min length angular code example
Example 1: validation maxlength angular
Validators.maxLength(11)
Example 2: formgroup check if valid
form: FormGroup;
onSubmit(){
//checks if form is valid
if( this.form.valid){
//more code here
}
}