I'm trying to assign a value to a checkbox when checked and nothing (or false) when unchecked:
<input type="checkbox" [value]="key" [formControlName]="variable"/>
This doesn't work and the values are either true or false. Is it possible to assign a variable?