Check out example codes for "formgroup check if valid". It will help you in understanding the concepts better.
Code Example 1
form: FormGroup;
onSubmit(){
//checks if form is valid
if( this.form.valid){
//more code here
}
}
Code Example 2
Validators.minLength(9)
Learn ReactJs, React Native from akashmittal.com