title: Angular2 how to get errors message of form?
body: <p>I want to get errors message in function of component instead show them in template:</p>
  
  <pre><code>&lt;p [hidden]="!name.control.errors.required" *ngIf="name?.control?.errors?.required"&gt;name is required&lt;/p&gt;
  </code></pre>
  
  <p>How to get errors message of form in function of Component?</p>