title: How to add 'required field' asterisk to angular reactive form inputs
body: <p>I am developing one application with reactive dynamic angular form. This forms fields are coming from an API request and is generated dynamically. </p>
  
  <p>I really need to add  'required field' asterisk (*) to my form inputs which are required. How to achieve this ?</p>
  
  <p>The below is how my form fields look like.</p>
  
  <pre><code>&lt;ng-container *ngIf="input1.type=='string'" [hidden]="False"&gt;
   &lt;div&gt;
    &lt;mat-form-field&gt;
     &lt;input matInput   [formControlName]="input1.field_name"  type="text"  placeholder="{{input1.title}}"&gt;
    &lt;/mat-form-field&gt;   
   &lt;/div&gt;
  &lt;/ng-container&gt;
  </code></pre>