title: How to get checkbox data in angular material
body: <p>I want to get the all checkboxes items when user selects, now am getting the data But the problem is that the checkbox don't change, I mean that when I click the checkbox, if the initial state is checked, always remain checked and vice versa.</p>
  
  <pre><code>this.settings_data = ["one", "two", "three", "four", "five"];
  
  &lt;div class="settings_head" fxFlex="50" *ngFor="let item of settings_data"&gt;
    &lt;mat-checkbox formControlName="settingsCheckboxvalues" (ngModelChange)="seleteditems($event,item)"&gt;{{item}}&lt;/mat-checkbox&gt;
  &lt;/div&gt;
  
  
  
  seleteditems(event, value) {
    this.allitems.push(value);
  }
  </code></pre>