title: Give checked property to radio button inside a loop
body: <p>I recently got into angular and was making something when I had a code like this</p>
  
  <pre><code>&lt;th class="" scope="col" *ngFor="let rating of ratings"&gt;
     &lt;div class="form-check form-check-inline"&gt;
        &lt;input class="form-check-input" type="radio" [name]="param.paramId" [id]="param.paramId" [value]="rating" (change)="onSelectionChange(rating, param.paramId, coworker.empId)"&gt;
     &lt;/div&gt;
  &lt;/th&gt;
  </code></pre>
  
  <p>Here If I put checked in the radio button it default checks the last radio button in the loop. Can anyone help me and tell how to default check the first radio button?
  Thanks in Advance.</p>