title: How to get selected Radio Button values from Mat-radio-group with For loop in Angular
body: <p>I have a complex object i.e., like below</p>
  
  <pre><code>someName = [
  {name: "John",id: "1",rating: ['0', '1', '2', '3', '4', '5']},
  {name: "robert", id: "2", rating: ['0', '1', '2', '3', '4', '5']},
  {name: "luv", id: "3", rating: ['0', '1', '2', '3', '4', '5']}
  ];
  </code></pre>
  
  <p>from which I want to make a questionnaire to make sure they rate their answer from 0-5, now when I'm rendering my html like below</p>
  
  <pre><code>&lt;ng-container *ngFor="let sort of someName; let i=index"&gt;
     &lt;label id="example-radio-group-label"&gt;Rate your favorite section&lt;/label&gt;
     &lt;mat-radio-group aria-labelledby="example-radio-group-label" class="example-radio-group" [(ngModel)]="sectionRating"&gt;
        &lt;mat-radio-button class="example-radio-button" *ngFor="let section of sort.sections" [value]="section"&gt;{{season}}&lt;/mat-radio-button&gt;
     &lt;/mat-radio-group&gt;
  &lt;/ng-container&gt;
  </code></pre>
  
  <p>This is rendering properly but when I select my first question rating as 1 it is also selecting from all other rating also, and also i want to capture these each rating for that i tried <code>[(ngModel)]</code> but its giving only one value instead of an array </p>
  
  <p>in my .ts file, I gave my model reference as Array like this:</p>
  
  <pre><code>sectionRating: any[] = [];
  </code></pre>