Get all validation errors from Angular 2 FormGroup
<p>Given this code:</p>
<pre class="lang-js prettyprint-override"><code>this.form = this.formBuilder.group({
  email: ['', [Validators.required, EmailValidator.isValid]],
  hasAcceptedTerms: [false, Validators.pattern('true')]
});
</code></pre>
<p>How can I get all validation errors from <code>this.form</code>?</p>
<p>I'm writing unit tests and want to include the actual validation errors in the assert message.</p>