title: Angular 4 - Remove value from array when unchecked checkbox
body: <p>How can I remove the value from array when I uncheck the checkbox?</p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;input type="checkbox" id="saveUserNameCheckBox" (change)="selChk(member.id)"  [checked]="false"&gt;
  </code></pre>
  
  <p><strong>component</strong></p>
  
  <pre><code>selChk(val) {
  
     if (this.id.indexOf(val) == -1) {
      this.id.push(val);
      console.log(this.id);
     }
  }
  </code></pre>