title: Angular2 check re-entered password
body: <p>I have angular2 form as:</p>
  
  <pre><code>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])]
      });
  </code></pre>
  
  <p>But I am unable to figure out how to check repassword with password and throw error msg.</p>
  
  <p>** I followed answer of <a href="https://stackoverflow.com/questions/35474991/angular-2-form-validating-for-repeat-password">Angular 2 form validating for repeat password</a> but unable to include ControlGroup.</p>
  
  <p>Please help </p>