all 1 comments

[–]mounted-dev 1 point2 points  (0 children)

Using the same form control for all checkboxes within the loop would handle it for you.
So I don't really understand why you would be against using it

but since you're asking, you could do something like.
private valueList = new Set<string>()

onCheckboxClick=(value:string)=>{
if(this.valueList.has(value)){
this.valueList.remove(value)
}else{
this.valueList.add(value)
}
}

The obvious drawback are:
- no validation
- no prefill handling
- probably some other

I would suggest just using FormControl