My Angular2 form looks like this:
this.registerForm = formBuilder.group({
'name': ['', Validators.required],
'email': ['', Validators.compose([Validators.pattern("[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}"), Validators.required])],
'password': ['', Validators.compose([Validators.minLength(6), Validators.required])],
'repassword': ['', Validators.compose([Validators.minLength(6), Validators.required])]
});
Despite following the advice in this Stack Overflow answer, I am struggling to include ControlGroup to check repassword against password and display an error message.
Your help is greatly appreciated.