How can I remove the value from array when I uncheck the checkbox?
html
<input type="checkbox" id="saveUserNameCheckBox" (change)="selChk(member.id)" [checked]="false">
component
selChk(val) {
if (this.id.indexOf(val) == -1) {
this.id.push(val);
console.log(this.id);
}
}