I use ng-bootstrap ngbRadioGroupas follows:
<div>
<label>Deductible:</label>
<div class="radio-group" [(ngModel)]="transaction.isDeductible" ngbRadioGroup name="isDeductible">
<label class="btn btn-secondary"><input type="radio" [value]="true">Yes</label>
<label class="btn btn-secondary"><input type="radio" [value]="false">No</label>
</div>
</div>
Unfortunately, selecting one of the parameters does not set the property transaction.isDeductible.
What could be the problem?
Thanks in advance for any ideas, let me know if I can provide additional relevant information :)
EDIT:
Do not do anything with two other RadioGroups, I suggested the easiest one here
source
share