Validators same as other value in form
<p>I am wondering if there is a Validator that compares two different values from the same form - lets say I have the following:</p>

<pre><code> this.loginForm = fb.group({
      email: ["", Validators.required],
      password: ["", Validators.required],
      repeatPassword: ["", Validators.required]
  });
</code></pre>

<p>I found <a href="https://angular.io/docs/ts/latest/api/common/FormBuilder-class.html" rel="nofollow">this</a> in documentation, however it wasn't very helpful.</p>

<p>Any ideas?</p>